key prefixes per collector (#172)

* Ensure the collectors manage sagas in their own keyspace, as we do not want overlap (they have the same correlation ids internally from the exchange)

* version bump
This commit is contained in:
iPromKnight
2024-03-26 11:56:14 +00:00
committed by GitHub
parent 72db18f0ad
commit a50b5071b3
3 changed files with 15 additions and 9 deletions

View File

@@ -62,7 +62,10 @@ public static class ServiceCollectionExtensions
cfg.UseMessageRetry(r => r.Intervals(1000,2000,5000));
cfg.UseInMemoryOutbox();
})
.RedisRepository(redisConfiguration.ConnectionString)
.RedisRepository(redisConfiguration.ConnectionString, options =>
{
options.KeyPrefix = "debrid-collector:";
})
.Endpoint(
e =>
{

View File

@@ -99,7 +99,10 @@ public static class ServiceCollectionExtensions
timeout.Timeout = TimeSpan.FromMinutes(1);
});
})
.RedisRepository(redisConfiguration.ConnectionString);
.RedisRepository(redisConfiguration.ConnectionString, options =>
{
options.KeyPrefix = "qbit-collector:";
});
private static void AddQBitTorrentClient(this IServiceCollection services)
{