Lightest nats behaviors, less code

This commit is contained in:
mr
2026-02-18 14:34:30 +01:00
parent 1b3b33163f
commit aed1a26d9d
10 changed files with 210 additions and 325 deletions

View File

@@ -1,10 +1,10 @@
package main
import (
"oc-peer/infrastructure"
_ "oc-peer/routers"
oclib "cloud.o-forge.io/core/oc-lib"
"cloud.o-forge.io/core/oc-lib/tools"
beego "github.com/beego/beego/v2/server/web"
)
@@ -12,6 +12,6 @@ const appname = "oc-peer"
func main() {
oclib.InitAPI(appname)
go infrastructure.ListenNATS()
go oclib.InitNATSDecentralizedEmitter(tools.PEER)
beego.Run()
}