mirror of https://github.com/grpc/grpc-go.git
example: improve hello world server with starting msg (#4468)
This commit is contained in:
parent
4bae49e05b
commit
194dcc921a
|
|
@ -50,6 +50,7 @@ func main() {
|
|||
}
|
||||
s := grpc.NewServer()
|
||||
pb.RegisterGreeterServer(s, &server{})
|
||||
log.Printf("server listening at %v", lis.Addr())
|
||||
if err := s.Serve(lis); err != nil {
|
||||
log.Fatalf("failed to serve: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue