clientv3: rename to repeatableRetry in lease client
@@ -165,7 +165,7 @@ func (rkv *retryWriteKVClient) Compact(ctx context.Context, in *pb.CompactionReq
type retryLeaseClient struct {
pb.LeaseClient
- readRetry retryRPCFunc
+ repeatableRetry retryRPCFunc
}
// RetryLeaseClient implements a LeaseClient.
@@ -178,7 +178,7 @@ func RetryLeaseClient(c *Client) pb.LeaseClient {
}
func (rlc *retryLeaseClient) LeaseTimeToLive(ctx context.Context, in *pb.LeaseTimeToLiveRequest, opts ...grpc.CallOption) (resp *pb.LeaseTimeToLiveResponse, err error) {
- err = rlc.readRetry(ctx, func(rctx context.Context) error {
+ err = rlc.repeatableRetry(ctx, func(rctx context.Context) error {
resp, err = rlc.LeaseClient.LeaseTimeToLive(rctx, in, opts...)
return err
})
@@ -186,7 +186,7 @@ func (rlc *retryLeaseClient) LeaseTimeToLive(ctx context.Context, in *pb.LeaseTi
}
func (rlc *retryLeaseClient) LeaseLeases(ctx context.Context, in *pb.LeaseLeasesRequest, opts ...grpc.CallOption) (resp *pb.LeaseLeasesResponse, err error) {
- err = rlc.readRetry(ctx, func(rctx context.Context) error {
+ err = rlc.repeatableRetry(ctx, func(rctx context.Context) error {
resp, err = rlc.LeaseClient.LeaseLeases(rctx, in, opts...)
return err
})
@@ -194,7 +194,7 @@ func (rlc *retryLeaseClient) LeaseLeases(ctx context.Context, in *pb.LeaseLeases
}
func (rlc *retryLeaseClient) LeaseGrant(ctx context.Context, in *pb.LeaseGrantRequest, opts ...grpc.CallOption) (resp *pb.LeaseGrantResponse, err error) {
- err = rlc.readRetry(ctx, func(rctx context.Context) error {
+ err = rlc.repeatableRetry(ctx, func(rctx context.Context) error {
resp, err = rlc.LeaseClient.LeaseGrant(rctx, in, opts...)
return err
})
@@ -203,7 +203,7 @@ func (rlc *retryLeaseClient) LeaseGrant(ctx context.Context, in *pb.LeaseGrantRe
}
func (rlc *retryLeaseClient) LeaseRevoke(ctx context.Context, in *pb.LeaseRevokeRequest, opts ...grpc.CallOption) (resp *pb.LeaseRevokeResponse, err error) {
- err = rlc.readRetry(ctx, func(rctx context.Context) error {
+ err = rlc.repeatableRetry(ctx, func(rctx context.Context) error {
resp, err = rlc.LeaseClient.LeaseRevoke(rctx, in, opts...)
return err
})
@@ -211,7 +211,7 @@ func (rlc *retryLeaseClient) LeaseRevoke(ctx context.Context, in *pb.LeaseRevoke
}
func (rlc *retryLeaseClient) LeaseKeepAlive(ctx context.Context, opts ...grpc.CallOption) (stream pb.Lease_LeaseKeepAliveClient, err error) {
- err = rlc.readRetry(ctx, func(rctx context.Context) error {
+ err = rlc.repeatableRetry(ctx, func(rctx context.Context) error {
stream, err = rlc.LeaseClient.LeaseKeepAlive(rctx, opts...)
return err
})
