From 9817bd1d7900ab5c974e9eb1aa7b7190d73c7222 Mon Sep 17 00:00:00 2001 From: zc Date: Wed, 22 Sep 2021 09:30:43 +0800 Subject: [PATCH] bugfix: wrong blocking use `gin.Run` is already blocked, there is no need to `select{}` to block the process. If the api service is stopped, the program will not end normally due to `select{}`. --- main.go | 1 - 1 file changed, 1 deletion(-) diff --git a/main.go b/main.go index 579e8e3..d8c73eb 100644 --- a/main.go +++ b/main.go @@ -4,5 +4,4 @@ import "github.com/cdle/sillyGirl/core" func main() { core.RunServer() - select {} }