|
|
@ -35,10 +35,9 @@ func main() {
|
|
|
|
ctx := svc.NewServiceContext(c)
|
|
|
|
ctx := svc.NewServiceContext(c)
|
|
|
|
{{.srv}}
|
|
|
|
{{.srv}}
|
|
|
|
|
|
|
|
|
|
|
|
s, err := zrpc.NewServer(c.RpcServerConf, func(grpcServer *grpc.Server) {
|
|
|
|
s := zrpc.MustNewServer(c.RpcServerConf, func(grpcServer *grpc.Server) {
|
|
|
|
{{.registers}}
|
|
|
|
{{.registers}}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
logx.Must(err)
|
|
|
|
|
|
|
|
defer s.Stop()
|
|
|
|
defer s.Stop()
|
|
|
|
|
|
|
|
|
|
|
|
fmt.Printf("Starting rpc server at %s...\n", c.ListenOn)
|
|
|
|
fmt.Printf("Starting rpc server at %s...\n", c.ListenOn)
|
|
|
|