major refactoring :/
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m56s

This commit is contained in:
matst80
2024-11-10 18:39:28 +01:00
parent 50a1c56d56
commit 056bfd9ffe
10 changed files with 469 additions and 130 deletions

View File

@@ -173,11 +173,10 @@ func main() {
// if local
//syncedPool.AddRemote("localhost")
rpcHandler, err := NewGrainHandler(app.pool, ":1337")
_, err = NewGrainHandler(app.pool, ":1337")
if err != nil {
log.Fatalf("Error creating handler: %v\n", err)
}
go rpcHandler.Serve()
go func() {
for range time.Tick(time.Minute) {