From 21aad62513254227f97a97bac9483aadc0b0f7bf Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 14 Aug 2020 22:24:11 +0800 Subject: [PATCH] use default decay value from finagle --- rpcx/internal/balancer/p2c/p2c.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcx/internal/balancer/p2c/p2c.go b/rpcx/internal/balancer/p2c/p2c.go index 07fb3e81..431874e9 100644 --- a/rpcx/internal/balancer/p2c/p2c.go +++ b/rpcx/internal/balancer/p2c/p2c.go @@ -21,7 +21,7 @@ import ( const ( Name = "p2c_ewma" - decayTime = int64(time.Millisecond * 600) + decayTime = int64(time.Second * 10) // default value from finagle forcePick = int64(time.Second) initSuccess = 1000 throttleSuccess = initSuccess / 2