Skip to content

Commit

Permalink
Merge pull request #4 from jzyong/develop
Browse files Browse the repository at this point in the history
feat: grpc Error
  • Loading branch information
jzyong authored Sep 21, 2024
2 parents c216b79 + 8a43b2a commit e119b29
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ugk-agent-manager/rpc/rpc_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ func (m *GRpcManager) Init() error {
log.Fatal("%v", err)
}
log.Info("grpc listen on:%v", config.BaseConfig.RpcUrl)
go server.Serve(listen)
go func() {
err = server.Serve(listen)
if err != nil {
log.Fatal("grpc err:%v", err)
}
}()
log.Info("GRpcManager:init end......")

return nil
Expand Down

0 comments on commit e119b29

Please sign in to comment.