|
|
@ -45,7 +45,6 @@ func (a *RpcCmd) StartSvr(
|
|
|
|
name string,
|
|
|
|
name string,
|
|
|
|
rpcFn func(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error,
|
|
|
|
rpcFn func(discov discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error,
|
|
|
|
) error {
|
|
|
|
) error {
|
|
|
|
a.port = 10030
|
|
|
|
|
|
|
|
if a.GetPortFlag() == 0 {
|
|
|
|
if a.GetPortFlag() == 0 {
|
|
|
|
return errors.New("port is required")
|
|
|
|
return errors.New("port is required")
|
|
|
|
}
|
|
|
|
}
|
|
|
|