@@ -19,7 +19,6 @@ import (
19
19
"github.com/cockroachdb/cockroach/pkg/util/tracing"
20
20
"github.com/cockroachdb/cockroach/pkg/util/tracing/tracingpb"
21
21
"github.com/stretchr/testify/require"
22
- "google.golang.org/grpc"
23
22
)
24
23
25
24
func TestTransportMoveToFront (t * testing.T ) {
@@ -221,17 +220,17 @@ type mockInternalClient struct {
221
220
pErr * kvpb.Error
222
221
}
223
222
224
- var _ kvpb.InternalClient = & mockInternalClient {}
223
+ var _ kvpb.RPCInternalClient = & mockInternalClient {}
225
224
226
225
func (* mockInternalClient ) ResetQuorum (
227
- context.Context , * kvpb.ResetQuorumRequest , ... grpc. CallOption ,
226
+ context.Context , * kvpb.ResetQuorumRequest ,
228
227
) (* kvpb.ResetQuorumResponse , error ) {
229
228
panic ("unimplemented" )
230
229
}
231
230
232
231
// Batch is part of the kvpb.InternalClient interface.
233
232
func (m * mockInternalClient ) Batch (
234
- ctx context.Context , in * kvpb.BatchRequest , opts ... grpc. CallOption ,
233
+ ctx context.Context , in * kvpb.BatchRequest ,
235
234
) (* kvpb.BatchResponse , error ) {
236
235
var sp * tracing.Span
237
236
if m .tr != nil {
@@ -256,75 +255,75 @@ func (m *mockInternalClient) Batch(
256
255
}
257
256
258
257
func (m * mockInternalClient ) BatchStream (
259
- ctx context.Context , opts ... grpc. CallOption ,
260
- ) (kvpb.Internal_BatchStreamClient , error ) {
258
+ ctx context.Context ,
259
+ ) (kvpb.RPCInternal_BatchStreamClient , error ) {
261
260
return nil , fmt .Errorf ("unsupported BatchStream call" )
262
261
}
263
262
264
263
// RangeLookup implements the kvpb.InternalClient interface.
265
264
func (m * mockInternalClient ) RangeLookup (
266
- ctx context.Context , rl * kvpb.RangeLookupRequest , _ ... grpc. CallOption ,
265
+ ctx context.Context , rl * kvpb.RangeLookupRequest ,
267
266
) (* kvpb.RangeLookupResponse , error ) {
268
267
return nil , fmt .Errorf ("unsupported RangeLookup call" )
269
268
}
270
269
271
270
func (m * mockInternalClient ) MuxRangeFeed (
272
- ctx context.Context , opts ... grpc. CallOption ,
273
- ) (kvpb.Internal_MuxRangeFeedClient , error ) {
271
+ ctx context.Context ,
272
+ ) (kvpb.RPCInternal_MuxRangeFeedClient , error ) {
274
273
return nil , fmt .Errorf ("unsupported MuxRangeFeed call" )
275
274
}
276
275
277
276
// GossipSubscription is part of the kvpb.InternalClient interface.
278
277
func (m * mockInternalClient ) GossipSubscription (
279
- ctx context.Context , args * kvpb.GossipSubscriptionRequest , _ ... grpc. CallOption ,
280
- ) (kvpb.Internal_GossipSubscriptionClient , error ) {
278
+ ctx context.Context , args * kvpb.GossipSubscriptionRequest ,
279
+ ) (kvpb.RPCInternal_GossipSubscriptionClient , error ) {
281
280
return nil , fmt .Errorf ("unsupported GossipSubscripion call" )
282
281
}
283
282
284
283
func (m * mockInternalClient ) Join (
285
- context.Context , * kvpb.JoinNodeRequest , ... grpc. CallOption ,
284
+ context.Context , * kvpb.JoinNodeRequest ,
286
285
) (* kvpb.JoinNodeResponse , error ) {
287
286
return nil , fmt .Errorf ("unsupported Join call" )
288
287
}
289
288
290
289
func (m * mockInternalClient ) TokenBucket (
291
- ctx context.Context , in * kvpb.TokenBucketRequest , _ ... grpc. CallOption ,
290
+ ctx context.Context , in * kvpb.TokenBucketRequest ,
292
291
) (* kvpb.TokenBucketResponse , error ) {
293
292
return nil , fmt .Errorf ("unsupported TokenBucket call" )
294
293
}
295
294
296
295
func (m * mockInternalClient ) GetSpanConfigs (
297
- _ context.Context , _ * roachpb.GetSpanConfigsRequest , _ ... grpc. CallOption ,
296
+ _ context.Context , _ * roachpb.GetSpanConfigsRequest ,
298
297
) (* roachpb.GetSpanConfigsResponse , error ) {
299
298
return nil , fmt .Errorf ("unsupported GetSpanConfigs call" )
300
299
}
301
300
302
301
func (m * mockInternalClient ) SpanConfigConformance (
303
- _ context.Context , _ * roachpb.SpanConfigConformanceRequest , _ ... grpc. CallOption ,
302
+ _ context.Context , _ * roachpb.SpanConfigConformanceRequest ,
304
303
) (* roachpb.SpanConfigConformanceResponse , error ) {
305
304
return nil , fmt .Errorf ("unsupported SpanConfigConformance call" )
306
305
}
307
306
308
307
func (m * mockInternalClient ) GetAllSystemSpanConfigsThatApply (
309
- context.Context , * roachpb.GetAllSystemSpanConfigsThatApplyRequest , ... grpc. CallOption ,
308
+ context.Context , * roachpb.GetAllSystemSpanConfigsThatApplyRequest ,
310
309
) (* roachpb.GetAllSystemSpanConfigsThatApplyResponse , error ) {
311
310
return nil , fmt .Errorf ("unsupported GetAllSystemSpanConfigsThatApply call" )
312
311
}
313
312
314
313
func (m * mockInternalClient ) UpdateSpanConfigs (
315
- _ context.Context , _ * roachpb.UpdateSpanConfigsRequest , _ ... grpc. CallOption ,
314
+ _ context.Context , _ * roachpb.UpdateSpanConfigsRequest ,
316
315
) (* roachpb.UpdateSpanConfigsResponse , error ) {
317
316
return nil , fmt .Errorf ("unsupported UpdateSpanConfigs call" )
318
317
}
319
318
320
319
func (m * mockInternalClient ) TenantSettings (
321
- context.Context , * kvpb.TenantSettingsRequest , ... grpc. CallOption ,
322
- ) (kvpb.Internal_TenantSettingsClient , error ) {
320
+ context.Context , * kvpb.TenantSettingsRequest ,
321
+ ) (kvpb.RPCInternal_TenantSettingsClient , error ) {
323
322
return nil , fmt .Errorf ("unsupported TenantSettings call" )
324
323
}
325
324
326
325
func (n * mockInternalClient ) GetRangeDescriptors (
327
- context.Context , * kvpb.GetRangeDescriptorsRequest , ... grpc. CallOption ,
328
- ) (kvpb.Internal_GetRangeDescriptorsClient , error ) {
326
+ context.Context , * kvpb.GetRangeDescriptorsRequest ,
327
+ ) (kvpb.RPCInternal_GetRangeDescriptorsClient , error ) {
329
328
return nil , fmt .Errorf ("unsupported GetRangeDescriptors call" )
330
329
}
0 commit comments