show nodes version correctly

This commit is contained in:
sijie.sun
2024-09-18 22:25:47 +08:00
committed by Sijie.Sun
parent 6d7edcd486
commit 82f5dfd569
9 changed files with 60 additions and 17 deletions

View File

@@ -19,7 +19,10 @@ use tokio::{
use tokio_stream::wrappers::ReceiverStream;
use crate::{
common::{error::Error, global_ctx::ArcGlobalCtx, stun::StunInfoCollectorTrait, PeerId},
common::{
constants::EASYTIER_VERSION, error::Error, global_ctx::ArcGlobalCtx,
stun::StunInfoCollectorTrait, PeerId,
},
peers::{
peer_conn::PeerConn,
peer_rpc::PeerRpcManagerTransport,
@@ -746,7 +749,7 @@ impl PeerManager {
.map(|x| x.to_string())
.collect(),
config: self.global_ctx.config.dump(),
version: env!("CARGO_PKG_VERSION").to_string(),
version: EASYTIER_VERSION.to_string(),
}
}