tools/dhtnode: print listen sync status

This commit is contained in:
Adrien Beraud committed 2026-10-08 09:39:49 -04:00
1 parent 6f1ff2e10b
commit 53eb8682f5
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}