Skip to content

Commit

Permalink
Default timeprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Aug 14, 2024
1 parent da6d04a commit 3896958
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public CleanupIndexesJob(IElasticClient client, ILockProvider lockProvider, Time
{
_client = client;
_lockProvider = lockProvider;
_timeProvider = timeProvider;
_timeProvider = timeProvider ?? TimeProvider.System;
_logger = loggerFactory?.CreateLogger(GetType()) ?? NullLogger.Instance;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public SnapshotJob(IElasticClient client, ILockProvider lockProvider, TimeProvid
{
_client = client;
_lockProvider = lockProvider;
_timeProvider = timeProvider;
_timeProvider = timeProvider ?? TimeProvider.System;;
_logger = loggerFactory?.CreateLogger(GetType()) ?? NullLogger.Instance;
}

Expand Down

0 comments on commit 3896958

Please sign in to comment.