mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-10 12:54:44 +00:00
fixes
This commit is contained in:
parent
d2b457650d
commit
fec033a460
3 changed files with 2 additions and 3 deletions
|
@ -219,7 +219,7 @@ struct BlockDownloader<N: NetworkZone, S, C> {
|
||||||
/// The running chain entry tasks.
|
/// The running chain entry tasks.
|
||||||
///
|
///
|
||||||
/// Returns a result of the chain entry or an error.
|
/// Returns a result of the chain entry or an error.
|
||||||
#[allow(clippy::type_complexity)]
|
#[expect(clippy::type_complexity)]
|
||||||
chain_entry_task: JoinSet<Result<(ClientPoolDropGuard<N>, ChainEntry<N>), BlockDownloadError>>,
|
chain_entry_task: JoinSet<Result<(ClientPoolDropGuard<N>, ChainEntry<N>), BlockDownloadError>>,
|
||||||
|
|
||||||
/// The current inflight requests.
|
/// The current inflight requests.
|
||||||
|
|
|
@ -121,7 +121,6 @@ impl<N: NetworkZone> ClientPool<N> {
|
||||||
/// Note that the returned iterator is not guaranteed to contain every peer asked for.
|
/// Note that the returned iterator is not guaranteed to contain every peer asked for.
|
||||||
///
|
///
|
||||||
/// See [`Self::borrow_client`] for borrowing a single client.
|
/// See [`Self::borrow_client`] for borrowing a single client.
|
||||||
#[allow(private_interfaces)] // TODO: Remove me when 2024 Rust
|
|
||||||
pub fn borrow_clients<'a, 'b>(
|
pub fn borrow_clients<'a, 'b>(
|
||||||
self: &'a Arc<Self>,
|
self: &'a Arc<Self>,
|
||||||
peers: &'b [InternalPeerID<N::Addr>],
|
peers: &'b [InternalPeerID<N::Addr>],
|
||||||
|
|
|
@ -155,7 +155,7 @@ pub struct NetworkInterface<N: NetworkZone> {
|
||||||
/// on that claimed chain.
|
/// on that claimed chain.
|
||||||
top_block_watch: watch::Receiver<sync_states::NewSyncInfo>,
|
top_block_watch: watch::Receiver<sync_states::NewSyncInfo>,
|
||||||
/// A channel to request extra connections.
|
/// A channel to request extra connections.
|
||||||
#[allow(dead_code)] // will be used eventually
|
#[expect(dead_code, reason = "will be used eventually")]
|
||||||
make_connection_tx: mpsc::Sender<MakeConnectionRequest>,
|
make_connection_tx: mpsc::Sender<MakeConnectionRequest>,
|
||||||
/// The address book service.
|
/// The address book service.
|
||||||
address_book: BoxCloneService<AddressBookRequest<N>, AddressBookResponse<N>, tower::BoxError>,
|
address_book: BoxCloneService<AddressBookRequest<N>, AddressBookResponse<N>, tower::BoxError>,
|
||||||
|
|
Loading…
Reference in a new issue