From 8bc767f4721e71899d5af78fd5023973378cc4ea Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 6 Dec 2022 14:53:26 +0800 Subject: [PATCH] update --- cmd/business/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/business/main.go b/cmd/business/main.go index 22753f5..641d0f7 100644 --- a/cmd/business/main.go +++ b/cmd/business/main.go @@ -20,9 +20,6 @@ import ( ) func main() { - go func() { - http.ListenAndServe(":10001", nil) - }() //config.Init() db.Init() @@ -37,6 +34,9 @@ func main() { }() //runtime.SetBlockProfileRate(1) + go func() { + http.ListenAndServe(":10001", nil) + }() pb.RegisterBusinessIntServer(server, &api.BusinessIntServer{}) pb.RegisterBusinessExtServer(server, &api.BusinessExtServer{})