Fixing the redis bug, almost ready for prod
This commit is contained in:
parent
735a4a81d4
commit
5f437d74ea
6 changed files with 44 additions and 59 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue