mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
tools/dhtnode: print listen sync status
This commit is contained in:
1 parent
6f1ff2e10b
commit
53eb8682f5
1 file changed
+2
-1
+2
-1
@@ -405,7 +405,8 @@ cmd_loop(std::shared_ptr<DhtRunner>& node,
|
||||
return true;
|
||||
},
|
||||
{},
|
||||
dht::Where {rem});
|
||||
dht::Where {rem},
|
||||
[](bool synced) { std::cout << "Listen: " << (synced ? "synced" : "not synced") << std::endl; });
|
||||
auto t = token.get();
|
||||
std::cout << "Listening, token: " << t << std::endl;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user