@@ -132,7 +132,7 @@ public async Task Run(RunConfig runConfig)
132132 return ;
133133
134134 Task ShootingTask ( RateLimiter rateLimitPolicy , string operationType ,
135- Func < T , RunConfig , Counter ? , Task < ( int , StatusCode ) > > action )
135+ Func < T , RunConfig , Task < ( int , StatusCode ) > > action )
136136 {
137137 var metricFactory = Metrics . WithLabels ( new Dictionary < string , string >
138138 {
@@ -219,7 +219,7 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
219219 {
220220 pendingOperations . Inc ( ) ;
221221 var sw = Stopwatch . StartNew ( ) ;
222- var ( attempts , statusCode ) = await action ( client , runConfig , errorsTotal ) ;
222+ var ( attempts , statusCode ) = await action ( client , runConfig ) ;
223223 sw . Stop ( ) ;
224224
225225 retryAttempts . Set ( attempts ) ;
@@ -251,15 +251,13 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
251251 }
252252
253253 // return attempt count & StatusCode operation
254- protected abstract Task < ( int , StatusCode ) > Save ( T client , SloTable sloTable , int writeTimeout ,
255- Counter ? errorsTotal = null ) ;
254+ protected abstract Task < ( int , StatusCode ) > Save ( T client , SloTable sloTable , int writeTimeout ) ;
256255
257- protected abstract Task < ( int , StatusCode , object ? ) > Select ( T client , ( Guid Guid , int Id ) select , int readTimeout ,
258- Counter ? errorsTotal = null ) ;
256+ protected abstract Task < ( int , StatusCode , object ? ) > Select ( T client , ( Guid Guid , int Id ) select , int readTimeout ) ;
259257
260258 protected abstract Task < int > SelectCount ( T client ) ;
261259
262- private Task < ( int , StatusCode ) > Save ( T client , Config config , Counter ? errorsTotal = null )
260+ private Task < ( int , StatusCode ) > Save ( T client , Config config )
263261 {
264262 const int minSizeStr = 20 ;
265263 const int maxSizeStr = 40 ;
@@ -276,14 +274,14 @@ Task ShootingTask(RateLimiter rateLimitPolicy, string operationType,
276274 PayloadTimestamp = DateTime . Now
277275 } ;
278276
279- return Save ( client , sloTable , config . WriteTimeout , errorsTotal ) ;
277+ return Save ( client , sloTable , config . WriteTimeout ) ;
280278 }
281279
282- private async Task < ( int , StatusCode ) > Select ( T client , RunConfig config , Counter ? errorsTotal = null )
280+ private async Task < ( int , StatusCode ) > Select ( T client , RunConfig config )
283281 {
284282 var id = Random . Shared . Next ( _maxId ) ;
285283 var ( attempts , code , _) =
286- await Select ( client , new ValueTuple < Guid , int > ( GuidFromInt ( id ) , id ) , config . ReadTimeout , errorsTotal ) ;
284+ await Select ( client , new ValueTuple < Guid , int > ( GuidFromInt ( id ) , id ) , config . ReadTimeout ) ;
287285
288286 return ( attempts , code ) ;
289287 }
0 commit comments