mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-04-25 11:02:12 +00:00
Update atomic requirement from 0.4.6 to 0.5.0 (#1766)
* Update atomic requirement from 0.4.6 to 0.5.0 Updates the requirements on [atomic](https://github.com/Amanieu/atomic-rs) to permit the latest version. - [Release notes](https://github.com/Amanieu/atomic-rs/releases) - [Commits](https://github.com/Amanieu/atomic-rs/compare/v0.4.6...v0.5.0) Signed-off-by: dependabot[bot] <support@github.com> * .github/workflows: Update Rust nightly * misc/multistream-select: Don't mention private item in public doc * .github/workflows: Update renamed doc flag * core/src/connection/pool: Don't mention private item in public doc Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
parent
5099ab592f
commit
3c72b07e55
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -85,9 +85,9 @@ jobs:
|
||||
- name: Install nightly Rust
|
||||
# TODO: intra-doc links are available on nightly only
|
||||
# see https://doc.rust-lang.org/nightly/rustdoc/lints.html#intra_doc_link_resolution_failure
|
||||
run: rustup default nightly-2020-05-20
|
||||
run: rustup default nightly-2020-09-17
|
||||
- name: Check rustdoc links
|
||||
run: RUSTDOCFLAGS="--deny intra_doc_link_resolution_failure" cargo doc --verbose --workspace --no-deps --document-private-items
|
||||
run: RUSTDOCFLAGS="--deny broken_intra_doc_links" cargo doc --verbose --workspace --no-deps --document-private-items
|
||||
|
||||
integration-test:
|
||||
name: Integration tests
|
||||
|
@ -58,7 +58,7 @@ secp256k1 = ["libp2p-core/secp256k1"]
|
||||
all-features = true
|
||||
|
||||
[dependencies]
|
||||
atomic = "0.4.6"
|
||||
atomic = "0.5.0"
|
||||
bytes = "0.5"
|
||||
futures = "0.3.1"
|
||||
lazy_static = "1.2"
|
||||
|
@ -750,7 +750,7 @@ pub enum PoolConnection<'a, TInEvent, TConnInfo, TPeerId> {
|
||||
Established(EstablishedConnection<'a, TInEvent, TConnInfo>),
|
||||
}
|
||||
|
||||
/// A pending connection in a [`Pool`].
|
||||
/// A pending connection in a pool.
|
||||
pub struct PendingConnection<'a, TInEvent, TConnInfo, TPeerId> {
|
||||
entry: manager::PendingEntry<'a, TInEvent, TConnInfo>,
|
||||
pending: &'a mut FnvHashMap<ConnectionId, (ConnectedPoint, Option<TPeerId>)>,
|
||||
@ -781,7 +781,7 @@ impl<TInEvent, TConnInfo, TPeerId>
|
||||
}
|
||||
}
|
||||
|
||||
/// An established connection in a [`Pool`].
|
||||
/// An established connection in a pool.
|
||||
pub struct EstablishedConnection<'a, TInEvent, TConnInfo> {
|
||||
entry: manager::EstablishedEntry<'a, TInEvent, TConnInfo>,
|
||||
}
|
||||
@ -861,7 +861,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
/// An iterator over established connections in a [`Pool`].
|
||||
/// An iterator over established connections in a pool.
|
||||
pub struct EstablishedConnectionIter<'a, I, TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId> {
|
||||
pool: &'a mut Pool<TInEvent, TOutEvent, THandler, TTransErr, THandlerErr, TConnInfo, TPeerId>,
|
||||
ids: I
|
||||
|
@ -34,12 +34,11 @@ use std::{convert::TryFrom as _, io, iter, mem, pin::Pin, task::{Context, Poll}}
|
||||
/// returned `Future` resolves with the name of the negotiated protocol and
|
||||
/// a [`Negotiated`] I/O stream.
|
||||
///
|
||||
/// The chosen message flow for protocol negotiation depends on the numbers
|
||||
/// of supported protocols given. That is, this function delegates to
|
||||
/// [`dialer_select_proto_serial`] or [`dialer_select_proto_parallel`]
|
||||
/// based on the number of protocols given. The number of protocols is
|
||||
/// determined through the `size_hint` of the given iterator and thus
|
||||
/// an inaccurate size estimate may result in a suboptimal choice.
|
||||
/// The chosen message flow for protocol negotiation depends on the numbers of
|
||||
/// supported protocols given. That is, this function delegates to serial or
|
||||
/// parallel variant based on the number of protocols given. The number of
|
||||
/// protocols is determined through the `size_hint` of the given iterator and
|
||||
/// thus an inaccurate size estimate may result in a suboptimal choice.
|
||||
///
|
||||
/// Within the scope of this library, a dialer always commits to a specific
|
||||
/// multistream-select protocol [`Version`], whereas a listener always supports
|
||||
@ -401,4 +400,3 @@ where
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user