mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 23:21:04 +08:00
Go: refactor (#17072)
Refactor stats --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -368,8 +368,8 @@ func main() {
|
||||
common.Warn("Failed to initialize server variables from Redis, using defaults", zap.String("error", err.Error()))
|
||||
}
|
||||
|
||||
ctx := context.Background()
|
||||
if err = server.StartServer(ctx, serverName); err != nil {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
if err = server.StartServer(ctx, cancel, serverName); err != nil {
|
||||
common.Error("Failed to start EE server", err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user