Skip to content

Commit

Permalink
Addendum to last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kürzeder committed Jul 27, 2019
1 parent 69aa470 commit 203e7ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions module/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
struct lua_State;
class ILuaModuleManager;

using redis_client = cpp_redis::client;

class Module
{
public:
Expand Down
4 changes: 2 additions & 2 deletions module/RedisClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

RedisClient::RedisClient()
{
_client = new redis_client();
_subscriber = new redis_subscriber();
_client = new cpp_redis::client();
_subscriber = new cpp_redis::subscriber();

g_Module->AddRedisClient(this);
}
Expand Down
7 changes: 2 additions & 5 deletions module/RedisClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
#include <cpp_redis/core/client.hpp>
#include <cpp_redis/core/subscriber.hpp>

using redis_client = cpp_redis::client;
using redis_subscriber = cpp_redis::subscriber;

class RedisClient
{
public:
Expand All @@ -15,7 +12,7 @@ class RedisClient
void disconnect() const;
bool is_connected() const;
private:
redis_client* _client;
redis_subscriber* _subscriber;
cpp_redis::client* _client;
cpp_redis::subscriber* _subscriber;
};

0 comments on commit 203e7ff

Please sign in to comment.