From 6616b86eda3496609854c34b26a4c90eb9e5fea8 Mon Sep 17 00:00:00 2001 From: tidwall Date: Sun, 11 Nov 2018 09:29:07 -0700 Subject: [PATCH] Default numloops to number goprocs --- internal/server/server.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/internal/server/server.go b/internal/server/server.go index 520116c5..3ed61699 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -22,7 +22,6 @@ import ( "sync/atomic" "time" - "github.com/klauspost/cpuid" "github.com/tidwall/buntdb" "github.com/tidwall/evio" "github.com/tidwall/geojson" @@ -295,12 +294,7 @@ func (server *Server) isProtected() bool { func (server *Server) evioServe() error { var events evio.Events if core.NumThreads == 0 { - cores := cpuid.CPU.PhysicalCores - if cores == 0 { - events.NumLoops = -1 - } else { - events.NumLoops = cores - } + events.NumLoops = -1 } else { events.NumLoops = core.NumThreads }