diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-28 02:15:56 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-28 02:15:56 +0200 |
commit | e268dbeb982d92188c6515b9571b17d864d40ef6 (patch) | |
tree | 991f9336177f0b46dba6d14ed7bf348f52be55bd /src/BootstrapConnection.cpp | |
parent | 4fffc1cd8ccf1c3b1f15b2cb1942daf8cdd556ab (diff) |
Fix build for mingw
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); |