bug for sync.Done
This commit is contained in:
parent
bc876f20d6
commit
44b1fba8c8
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue