diff --git a/main.go b/main.go index 3a2f7bfd..e001694d 100644 --- a/main.go +++ b/main.go @@ -17,6 +17,8 @@ package main import ( "os" + "runtime" + "github.com/pkg/profile" "github.com/abcum/surreal/cli" @@ -33,6 +35,8 @@ func main() { defer profile.Start(profile.BlockProfile, profile.ProfilePath("."), profile.NoShutdownHook).Stop() } + runtime.GOMAXPROCS(runtime.NumCPU()) + cli.Init() }