add p2c peak ewma load balancer

This commit is contained in:
kevin
2020-08-06 20:55:38 +08:00
parent c7544d0e60
commit 63583d4744
24 changed files with 304 additions and 282 deletions

View File

@@ -57,10 +57,5 @@ func (p *RpcProxy) TakeConn(ctx context.Context) (*grpc.ClientConn, error) {
return nil, err
}
conn, ok := val.(*RpcClient).Next()
if !ok {
return nil, grpc.ErrServerStopped
}
return conn, nil
return val.(*RpcClient).Conn(), nil
}