@@ -1899,19 +1899,19 @@ func (n *Node) batchStreamImpl(stream kvpb.RPCKVBatch_BatchStreamStream) error {
1899
1899
}
1900
1900
}
1901
1901
1902
+ type kvBatchServer Node
1903
+
1902
1904
func (n * Node ) AsDRPCKVBatchServer () kvpb.DRPCKVBatchServer {
1903
- return (* drpcNode )(n )
1905
+ return (* kvBatchServer )(n )
1904
1906
}
1905
1907
1906
- type drpcNode Node
1907
-
1908
- func (n * drpcNode ) Batch (
1908
+ func (n * kvBatchServer ) Batch (
1909
1909
ctx context.Context , request * kvpb.BatchRequest ,
1910
1910
) (* kvpb.BatchResponse , error ) {
1911
1911
return (* Node )(n ).Batch (ctx , request )
1912
1912
}
1913
1913
1914
- func (n * drpcNode ) BatchStream (stream kvpb.DRPCKVBatch_BatchStreamStream ) error {
1914
+ func (n * kvBatchServer ) BatchStream (stream kvpb.DRPCKVBatch_BatchStreamStream ) error {
1915
1915
return (* Node )(n ).batchStreamImpl (stream )
1916
1916
}
1917
1917
@@ -2055,7 +2055,6 @@ func filterRangeLookupResponseForTenant(
2055
2055
return truncated
2056
2056
}
2057
2057
2058
- // RangeLookup implements the kvpb.InternalServer interface.
2059
2058
func (n * Node ) RangeLookup (
2060
2059
ctx context.Context , req * kvpb.RangeLookupRequest ,
2061
2060
) (* kvpb.RangeLookupResponse , error ) {
@@ -2392,6 +2391,12 @@ func (n *Node) ResetQuorum(
2392
2391
// GossipSubscription implements the kvpb.InternalServer interface.
2393
2392
func (n * Node ) GossipSubscription (
2394
2393
args * kvpb.GossipSubscriptionRequest , stream kvpb.Internal_GossipSubscriptionServer ,
2394
+ ) error {
2395
+ return n .gossipSubscription (args , stream )
2396
+ }
2397
+
2398
+ func (n * Node ) gossipSubscription (
2399
+ args * kvpb.GossipSubscriptionRequest , stream kvpb.RPCInternal_GossipSubscriptionStream ,
2395
2400
) error {
2396
2401
ctx := n .storeCfg .AmbientCtx .AnnotateCtx (stream .Context ())
2397
2402
ctxDone := ctx .Done ()
@@ -2481,6 +2486,12 @@ func (n *Node) waitForTenantWatcherReadiness(
2481
2486
// TenantSettings implements the kvpb.InternalServer interface.
2482
2487
func (n * Node ) TenantSettings (
2483
2488
args * kvpb.TenantSettingsRequest , stream kvpb.Internal_TenantSettingsServer ,
2489
+ ) error {
2490
+ return n .tenantSettings (args , stream )
2491
+ }
2492
+
2493
+ func (n * Node ) tenantSettings (
2494
+ args * kvpb.TenantSettingsRequest , stream kvpb.RPCTenantService_TenantSettingsStream ,
2484
2495
) error {
2485
2496
ctx := n .storeCfg .AmbientCtx .AnnotateCtx (stream .Context ())
2486
2497
ctxDone := ctx .Done ()
@@ -2888,6 +2899,12 @@ func (n *Node) SpanConfigConformance(
2888
2899
func (n * Node ) GetRangeDescriptors (
2889
2900
args * kvpb.GetRangeDescriptorsRequest , stream kvpb.Internal_GetRangeDescriptorsServer ,
2890
2901
) error {
2902
+ return n .getRangeDescriptors (args , stream )
2903
+ }
2904
+
2905
+ func (n * Node ) getRangeDescriptors (
2906
+ args * kvpb.GetRangeDescriptorsRequest , stream kvpb.RPCTenantService_GetRangeDescriptorsStream ,
2907
+ ) error {
2891
2908
2892
2909
iter , err := n .execCfg .RangeDescIteratorFactory .NewLazyIterator (stream .Context (), args .Span , int (args .BatchSize ))
2893
2910
if err != nil {
@@ -2914,3 +2931,37 @@ func (n *Node) GetRangeDescriptors(
2914
2931
RangeDescriptors : rangeDescriptors ,
2915
2932
})
2916
2933
}
2934
+
2935
+ type tenantServiceServer Node
2936
+
2937
+ func (n * Node ) AsDRPCTenantServiceServer () kvpb.DRPCTenantServiceServer {
2938
+ return (* tenantServiceServer )(n )
2939
+ }
2940
+
2941
+ // GossipSubscription implements the kvpb.DRPCTenantServiceServer interface.
2942
+ func (n * tenantServiceServer ) GossipSubscription (
2943
+ args * kvpb.GossipSubscriptionRequest , stream kvpb.DRPCTenantService_GossipSubscriptionStream ,
2944
+ ) error {
2945
+ return (* Node )(n ).gossipSubscription (args , stream )
2946
+ }
2947
+
2948
+ // TenantSettings implements the kvpb.DRPCTenantServiceServer interface.
2949
+ func (n * tenantServiceServer ) TenantSettings (
2950
+ args * kvpb.TenantSettingsRequest , stream kvpb.DRPCTenantService_TenantSettingsStream ,
2951
+ ) error {
2952
+ return (* Node )(n ).tenantSettings (args , stream )
2953
+ }
2954
+
2955
+ // RangeLookup implements the kvpb.DRPCTenantServiceServer interface.
2956
+ func (n * tenantServiceServer ) RangeLookup (
2957
+ ctx context.Context , req * kvpb.RangeLookupRequest ,
2958
+ ) (* kvpb.RangeLookupResponse , error ) {
2959
+ return (* Node )(n ).RangeLookup (ctx , req )
2960
+ }
2961
+
2962
+ // GetRangeDescriptors implements the kvpb.DRPCTenantServiceServer interface.
2963
+ func (n * tenantServiceServer ) GetRangeDescriptors (
2964
+ args * kvpb.GetRangeDescriptorsRequest , stream kvpb.DRPCTenantService_GetRangeDescriptorsStream ,
2965
+ ) error {
2966
+ return (* Node )(n ).getRangeDescriptors (args , stream )
2967
+ }
0 commit comments