Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WARNING: DATA RACE
Write at 0x00c0005c41b8 by goroutine 152:
github.com/ergo-services/ergo/gen.(*Application).ProcessLoop.func1()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/application.go:118 +0x39
runtime.deferreturn()
E:/Golang/src/runtime/panic.go:476 +0x32
myApp/myApp.(*MyApp).ProcessLoop()
:1 +0x95
github.com/ergo-services/ergo/node.(*core).spawn.func3()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/core.go:521 +0x19e
github.com/ergo-services/ergo/node.(*core).spawn.func5()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/core.go:525 +0x74
Previous read at 0x00c0005c41b8 by goroutine 179:
github.com/ergo-services/ergo/node.(*node).listApplications()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:199 +0x153
github.com/ergo-services/ergo/node.(*node).WhichApplications()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:187 +0x176
github.com/ergo-services/ergo/node.(*node).Stats()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/node/node.go:165 +0x177
github.com/ergo-services/ergo/apps/system.gatherStats()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/apps/system/metrics.go:175 +0x19d
github.com/ergo-services/ergo/apps/system.(*systemMetrics).HandleCast()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/apps/system/metrics.go:75 +0x2f5
github.com/ergo-services/ergo/gen.(*ServerProcess).handleCast()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/server.go:518 +0x16d
github.com/ergo-services/ergo/gen.(*ServerProcess).waitCallbackOrDeferr.func2()
E:/goEnv/go/pkg/mod/github.com/ergo-services/ergo@v1.999.224/gen/server.go:424 +0x8c