We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ddb112 commit d21aa90Copy full SHA for d21aa90
src/gossip/gossip.cc
@@ -42,6 +42,8 @@ GossipMessage::GossipMessage(const std::string& message) : message(message) {
42
SPDLOG_ERROR("unimplemented");
43
}
44
45
+GossipServer* GossipServer::instance_ptr = nullptr;
46
+
47
void GossipServer::init_instance() {
48
if (instance_ptr == nullptr) {
49
instance_ptr = new GossipServer();
src/gossip/gossip.h
@@ -43,7 +43,7 @@ class GossipServer {
static GossipServer* instance_ptr;
// singleton instance - protected constructor
- GossipServer();
+ GossipServer() = default;
// singleton instance - protected destructor
~GossipServer() = default;
0 commit comments