Fix bug that otal_commands_queued_ is not initialized (#13852)

This commit is contained in:
fangfengbin
2021-02-03 10:00:15 +08:00
committed by GitHub
parent c8e1f07c52
commit b4684cf37a
+1 -1
View File
@@ -45,7 +45,7 @@ class GcsPubSub {
using Callback = std::function<void(const std::string &id, const std::string &data)>;
explicit GcsPubSub(std::shared_ptr<RedisClient> redis_client)
: redis_client_(redis_client) {}
: redis_client_(redis_client), total_commands_queued_(0) {}
virtual ~GcsPubSub() = default;