adding a register method to rpc.
This commit is contained in:
@@ -90,10 +90,7 @@ var seedCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
rpc.Register(func(srv *grpc.Server) {
|
rpc.Register(func(srv *grpc.Server) {
|
||||||
|
chat.RegisterChatServiceServer(srv, &chat.Server{})
|
||||||
s := chat.Server{}
|
|
||||||
|
|
||||||
chat.RegisterChatServiceServer(srv, &s)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
log.I.Ln("starting rpc server")
|
log.I.Ln("starting rpc server")
|
||||||
|
|||||||
Reference in New Issue
Block a user