bug for sync.Done

This commit is contained in:
suguo.yao 2021-09-16 14:03:34 +08:00
parent bc876f20d6
commit 44b1fba8c8
1 changed files with 1 additions and 1 deletions

View File

@ -64,12 +64,12 @@ func Start() {
}
defer lis.Close()
conf.Port = lis.Addr().(*net.TCPAddr).Port
wg.Done()
log.Printf("starting grpc service on %s:%d", addr.IP, conf.Port)
err = rpc.Serve(lis)
if err != nil {
log.Fatal("fail to open microservice: ", err)
}
wg.Done()
}()
wg.Wait()
}