diff --git a/server/start.go b/server/start.go index c589045e62ff..bd9c71f6d4f4 100644 --- a/server/start.go +++ b/server/start.go @@ -549,12 +549,7 @@ func wrapCPUProfile(svrCtx *Context, callbackFn func() error) error { }() } - errCh := make(chan error) - go func() { - errCh <- callbackFn() - }() - - return <-errCh + return callbackFn() } // emitServerInfoMetrics emits server info related metrics using application telemetry.