adding a register method to rpc.

This commit is contained in:
greg stone
2023-02-22 17:04:04 +00:00
parent 49acb9dc02
commit 9c82f3e773

View File

@@ -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")