Skip to content

Commit d21aa90

Browse files
committed
update
1 parent 9ddb112 commit d21aa90

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/gossip/gossip.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ GossipMessage::GossipMessage(const std::string& message) : message(message) {
4242
SPDLOG_ERROR("unimplemented");
4343
}
4444

45+
GossipServer* GossipServer::instance_ptr = nullptr;
46+
4547
void GossipServer::init_instance() {
4648
if (instance_ptr == nullptr) {
4749
instance_ptr = new GossipServer();

src/gossip/gossip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GossipServer {
4343
static GossipServer* instance_ptr;
4444

4545
// singleton instance - protected constructor
46-
GossipServer();
46+
GossipServer() = default;
4747

4848
// singleton instance - protected destructor
4949
~GossipServer() = default;

0 commit comments

Comments
 (0)