diff options
Diffstat (limited to 'src/BootstrapConnection.cpp')
-rw-r--r-- | src/BootstrapConnection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/BootstrapConnection.cpp b/src/BootstrapConnection.cpp index d7cee09..d0731b9 100644 --- a/src/BootstrapConnection.cpp +++ b/src/BootstrapConnection.cpp @@ -30,7 +30,7 @@ namespace sibs } }); - PubSubResult connectResult = PubSubResult::OK; + PubSubResult connectResult = PubSubResult::RESULT_OK; std::string connectResultStr; bool connected = false; connections.connectServer(bootstrapAddress, [this, &connectResult, &connectResultStr, &connected](std::shared_ptr<DirectConnectionPeer> peer, PubSubResult result, const std::string &resultStr) @@ -46,7 +46,7 @@ namespace sibs std::this_thread::sleep_for(std::chrono::milliseconds(10)); } - if(connectResult != PubSubResult::OK) + if(connectResult != PubSubResult::RESULT_OK) { std::string errMsg = "Failed to connect to bootstrap node, error: "; errMsg += connectResultStr; @@ -122,7 +122,7 @@ namespace sibs Log::debug("BootstrapConnection::receiveDataFromServer: received subscriber (ip: %s, port: %d) from bootstrap node", newPeerAddress.getAddress().c_str(), newPeerAddress.getPort()); connections.connect(newPeerAddress, [this, pubsubKey](std::shared_ptr<DirectConnectionPeer> peer, PubSubResult result, const std::string &resultStr) { - if(result == PubSubResult::OK) + if(result == PubSubResult::RESULT_OK) { std::lock_guard<std::recursive_mutex> lock(subscribeDataMutex); auto subscribeDataIt = subscribeData.find(pubsubKey); |