@@ -16,7 +16,6 @@ using namespace NYdb;
1616
1717const TDuration DefaultReactionTime = TDuration::Minutes(2 );
1818const TDuration ReactionTimeDelay = TDuration::MilliSeconds(5 );
19- const TDuration GlobalTimeout = TDuration::Minutes(2 );
2019const std::uint64_t PartitionsCount = 64 ;
2120
2221Y_DECLARE_OUT_SPEC (, NYdb::TStatus, stream, value) {
@@ -434,8 +433,6 @@ void ParseOptionsCommon(TOpts& opts, TCommonOptions& options) {
434433 .DefaultValue (options.MinLength ).StoreResult (&options.MinLength );
435434 opts.AddLongOption (" payload-max" , " Maximum length of payload string" ).RequiredArgument (" NUM" )
436435 .DefaultValue (options.MaxLength ).StoreResult (&options.MaxLength );
437- opts.AddLongOption (" timeout" , " Read requests execution timeout [ms]" ).RequiredArgument (" NUM" )
438- .DefaultValue (options.A_ReactionTime ).StoreResult (&options.A_ReactionTime );
439436 opts.AddLongOption (" dont-push" , " Do not push metrics" ).NoArgument ()
440437 .SetFlag (&options.DontPushMetrics ).DefaultValue (options.DontPushMetrics );
441438 opts.AddLongOption (" metrics-push-url" , " URL to push metrics" ).RequiredArgument (" URL" )
@@ -500,6 +497,10 @@ bool ParseOptionsRun(int argc, char** argv, TRunOptions& runOptions) {
500497 .SetFlag (&runOptions.DontRunB ).DefaultValue (runOptions.DontRunB );
501498 opts.AddLongOption (" infly" , " Maximum number of running jobs" ).RequiredArgument (" NUM" )
502499 .DefaultValue (runOptions.CommonOptions .MaxInfly ).StoreResult (&runOptions.CommonOptions .MaxInfly );
500+ opts.AddLongOption (" read-timeout" , " Read requests execution timeout [ms]" ).RequiredArgument (" NUM" )
501+ .DefaultValue (runOptions.ReadTimeout ).StoreResult (&runOptions.ReadTimeout );
502+ opts.AddLongOption (" write-timeout" , " Write requests execution timeout [ms]" ).RequiredArgument (" NUM" )
503+ .DefaultValue (runOptions.WriteTimeout ).StoreResult (&runOptions.WriteTimeout );
503504 TOptsParseResult res (&opts, argc, argv);
504505
505506 if (!CheckOptionsCommon (runOptions.CommonOptions )) {
0 commit comments