diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-04-23 18:28:52 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-04-23 18:28:52 -0500 |
| commit | 3d9bc65bf535a3c4dab440e91587495afba648e6 (patch) | |
| tree | 5af66275e6ffd4a2ee3c51796fa093e6c8cd8e19 | |
| parent | ea43d3e350414b344bea21cb1a313d2c20c966de (diff) | |
| download | slskd-3d9bc65bf535a3c4dab440e91587495afba648e6.tar.gz | |
fix ISystemClock
| -rw-r--r-- | src/slskd/Users/UserService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index 4354a0eb..3ce827c8 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -93,14 +93,14 @@ namespace slskd.Users public UserService( ISoulseekClient soulseekClient, IOptionsMonitor<Options> optionsMonitor, - ISystemClock systemClock) + ISystemClock systemClock = null) { Client = soulseekClient; OptionsMonitor = optionsMonitor; OptionsMonitor.OnChange(options => Configure(options)); - InjectedClock = systemClock; + InjectedClock = systemClock ?? new SystemClock(); BlacklistDecisionCache = new MemoryCache(new MemoryCacheOptions { Clock = InjectedClock, ExpirationScanFrequency = TimeSpan.FromMinutes(1), SizeLimit = 1000 }); // updates may be sent unsolicited from the server, so update when we get them. binding these events will cause |
