fix: del the undifined func

This commit is contained in:
luhaoling 2024-02-29 10:08:28 +08:00
parent 77abadde37
commit 5a1c0aca3c

View File

@ -120,7 +120,7 @@ func Start(config *config.GlobalConfig, port int, proPort int) error {
defer cancel() defer cancel()
select { select {
case <-sigs: case <-sigs:
util.SIGUSR1Exit() util.SIGTERMExit()
err := server.Shutdown(ctx) err := server.Shutdown(ctx)
if err != nil { if err != nil {
return errs.Wrap(err, "shutdown err") return errs.Wrap(err, "shutdown err")