fix: 优雅关停超时不再跳过 Cleanup,避免缓冲的用量/计费记录丢失
This commit is contained in:
1 file changed
+1
-1
@@ -183,7 +183,7 @@ func runMainServer() {
|
||||
defer cancel()
|
||||
|
||||
if err := app.Server.Shutdown(ctx); err != nil {
|
||||
log.Fatalf("Server forced to shutdown: %v", err)
|
||||
log.Printf("Server forced to shutdown: %v", err)
|
||||
}
|
||||
|
||||
log.Println("Server exited")
|
||||
|
||||
Reference in new issue
Block a user