shutdown server before close db

This commit is contained in:
kenneth 2023-12-25 17:32:10 +08:00
parent ae060a2a37
commit b7c593c827

View File

@ -128,6 +128,7 @@ func main() {
defer cancel()
service.CloseStoreRedisConn()
conn.Close()
srv.Shutdown(ctx)
log.Println("shutting down")