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() defer cancel()
service.CloseStoreRedisConn() service.CloseStoreRedisConn()
conn.Close()
srv.Shutdown(ctx) srv.Shutdown(ctx)
log.Println("shutting down") log.Println("shutting down")