feat: rpc add health check function configuration optional (#2288)
* feat: rpc add health check function configuration optional * update config field name
This commit is contained in:
@@ -40,6 +40,7 @@ func NewServer(c RpcServerConf, register internal.RegisterFn) (*RpcServer, error
|
||||
metrics := stat.NewMetrics(c.ListenOn)
|
||||
serverOptions := []internal.ServerOption{
|
||||
internal.WithMetrics(metrics),
|
||||
internal.WithRpcHealth(c.Health),
|
||||
}
|
||||
|
||||
if c.HasEtcd() {
|
||||
|
||||
Reference in New Issue
Block a user