Fixing the redis bug, almost ready for prod

This commit is contained in:
dboerlage 2017-04-18 11:00:38 +02:00
parent 735a4a81d4
commit 5f437d74ea
No known key found for this signature in database
GPG key ID: BDA07B7D3FCF147F
6 changed files with 44 additions and 59 deletions

View file

@ -11,10 +11,10 @@ namespace Geekbot.net.Lib
private readonly SocketMessage message;
private readonly IDatabase redis;
public StatsRecorder(SocketMessage message)
public StatsRecorder(SocketMessage message, IRedisClient redisClient)
{
this.message = message;
redis = new RedisClient().Client;
redis = redisClient.Client;
}
public async Task UpdateUserRecordAsync()