Skip to content

Commit

Permalink
identify: Add helper to retrive the agent_version.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Apr 1, 2021
1 parent 60760fa commit 1d3f8cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions protocols/identify/src/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ impl Identify {
}
}

/// Returns the `agent_version` of the node.
pub fn agent_version(&self) -> &str {
&self.config.agent_version
}

/// Initiates an active push of the local peer information to the given peers.
pub fn push<I>(&mut self, peers: I)
where
Expand Down

0 comments on commit 1d3f8cc

Please sign in to comment.