Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(swarm)!: deprecate PollParameters where possible #3153

Merged
merged 15 commits into from
Dec 14, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Deprecate PollParameters::local_peer_id
  • Loading branch information
thomaseizinger committed Nov 22, 2022
commit cd50a951820dca38c64d2f3e51d55995d7c78635
4 changes: 4 additions & 0 deletions swarm/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,10 @@ pub trait PollParameters {
fn external_addresses(&self) -> Self::ExternalAddressesIter;

/// Returns the peer id of the local node.
#[deprecated(
since = "0.41.0",
note = "Pass the node's `PeerId` into the behaviour instead."
)]
fn local_peer_id(&self) -> &PeerId;
}

Expand Down