mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-13 01:40:00 +08:00
add p2c peak ewma load balancer
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user