Skip to content

Commit

Permalink
Merge pull request #22 from peppy/redis-default-host
Browse files Browse the repository at this point in the history
Change default redis host to `localhost`
  • Loading branch information
smoogipoo committed Dec 2, 2022
2 parents 4b20611 + 35c3ab9 commit f8ee6a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ jobs:
- name: Build
run: dotnet build --no-restore
- name: Test
env:
REDIS_HOST: redis
run: dotnet test --no-restore --verbosity normal
2 changes: 1 addition & 1 deletion osu.Server.QueueProcessor/QueueProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public abstract class QueueProcessor<T> where T : QueueItem
/// An option queue to push to when finished.
/// </summary>
private readonly ConnectionMultiplexer redis = ConnectionMultiplexer.Connect(
Environment.GetEnvironmentVariable("REDIS_HOST") ?? "redis");
Environment.GetEnvironmentVariable("REDIS_HOST") ?? "localhost");

private long totalProcessed;

Expand Down

0 comments on commit f8ee6a8

Please sign in to comment.