cli: sort peers by IPv4 and hostname (#1191)

* cli: sort entries by IPv4 and hostname

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
fanyang
2025-08-04 21:18:49 +08:00
committed by GitHub
parent d0a6c93c2c
commit e3e406dcde
3 changed files with 15 additions and 3 deletions
+2 -2
View File
@@ -96,13 +96,13 @@ impl PeerCenterBase {
>(
&self,
job_ctx: T,
job_fn: (impl Fn(
job_fn: impl Fn(
Box<dyn PeerCenterRpc<Controller = BaseController> + Send>,
Arc<PeridicJobCtx<T>>,
) -> Fut
+ Send
+ Sync
+ 'static),
+ 'static,
) -> () {
let my_peer_id = self.my_peer_id;
let peer_mgr = self.peer_mgr.clone();