Skip to content

Commit

Permalink
refactor: default timer
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmyagkov committed Sep 25, 2024
1 parent feb9050 commit 6668b9f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cloud/blockstore/libs/service_local/service_local.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ struct TLocalServiceBase

////////////////////////////////////////////////////////////////////////////////

const ui32 kDefaultStorageShutdownTimeoutInMilliseconds = 60000;
constexpr auto DefaultStorageShutdownTimeout = TDuration::Minutes(1);

class TLocalService final
: public TLocalServiceBase
Expand All @@ -453,10 +453,9 @@ class TLocalService final
: DiscoveryService(std::move(discoveryService))
, VolumeManager(
config.GetDataDir(),
TDuration::MilliSeconds(
config.HasShutdownTimeout()
? config.GetShutdownTimeout()
: kDefaultStorageShutdownTimeoutInMilliseconds),
config.HasShutdownTimeout()
? TDuration::MilliSeconds(config.GetShutdownTimeout())
: DefaultStorageShutdownTimeout,
std::move(storageProvider))
{}

Expand Down

0 comments on commit 6668b9f

Please sign in to comment.