Revert "feat: enable retry for zrpc (#1237)" (#1245)

This reverts commit 09eb53f308.
This commit is contained in:
Kevin Wan
2021-11-15 23:30:31 +08:00
committed by GitHub
parent 11c485a5ed
commit 67db40ed4f
4 changed files with 32 additions and 26 deletions

View File

@@ -38,10 +38,9 @@ func NewServer(c RpcServerConf, register internal.RegisterFn) (*RpcServer, error
var server internal.Server
metrics := stat.NewMetrics(c.ListenOn)
serverOptions := []internal.ServerOption{
internal.WithMetrics(metrics),
internal.WithMaxRetries(c.MaxRetries),
}
// TODO: enable it in v1.2.4
// serverOptions := []internal.ServerOption{internal.WithMetrics(metrics), internal.WithMaxRetries(c.MaxRetries)}
serverOptions := []internal.ServerOption{internal.WithMetrics(metrics)}
if c.HasEtcd() {
server, err = internal.NewRpcPubServer(c.Etcd, c.ListenOn, serverOptions...)