diff options
| author | Grant Limberg <[email protected]> | 2020-05-12 11:56:19 -0700 |
|---|---|---|
| committer | Grant Limberg <[email protected]> | 2020-05-12 11:56:19 -0700 |
| commit | 563655a1a410f6b86d86b3f3747bc1a8d2e88d76 (patch) | |
| tree | 8f76c60e61121aab717f0f712d550677cea86f18 /controller/PostgreSQL.hpp | |
| parent | d699116795b5e1db30798b8abb59b4fa3e70ea13 (diff) | |
Redis now usable as a message queue
Diffstat (limited to 'controller/PostgreSQL.hpp')
| -rw-r--r-- | controller/PostgreSQL.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index 986559ac..44347cd8 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -20,6 +20,7 @@ #define ZT_CENTRAL_CONTROLLER_COMMIT_THREADS 4 +#include <memory> #include <redis++/redis++.h> extern "C" { @@ -64,7 +65,7 @@ private: void networksDbWatcher(); void _networksWatcher_Postgres(PGconn *conn); - void _membersWatcher_Reids(); + void _membersWatcher_Redis(); void _networksWatcher_Redis(); void commitThread(); @@ -100,8 +101,8 @@ private: int _listenPort; RedisConfig *_rc; - sw::redis::Redis *_redis; - sw::redis::RedisCluster *_cluster; + std::shared_ptr<sw::redis::Redis> _redis; + std::shared_ptr<sw::redis::RedisCluster> _cluster; }; } // namespace ZeroTier |
