Lightest nats behaviors, less code
This commit is contained in:
4
main.go
4
main.go
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user