Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Closed
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
Make it compile
  • Loading branch information
tomaka committed Jul 13, 2020
commit 24e3d31b6bbd98e135e279cd1293fa0280403bad
10 changes: 5 additions & 5 deletions client/network/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,12 +621,12 @@ impl<B: BlockT + 'static, H: ExHashT> NetworkService<B, H> {
/// Notifications should be dropped
/// if buffer is full
///
pub async fn send_notifications(
&self,
pub async fn send_notifications<'a>(
&'a self,
target: PeerId,
engine_id: ConsensusEngineId,
num_slots: usize,
) -> Result<NotificationsBufferSlots, SendNotificationsError> {
) -> Result<NotificationsBufferSlots<'a>, SendNotificationsError> {
todo!()
}

Expand Down Expand Up @@ -885,7 +885,7 @@ impl<B, H> NetworkStateInfo for NetworkService<B, H>
/// Reserved slots in the notifications buffer, ready to accept data.
#[must_use]
pub struct NotificationsBufferSlots<'a> {
_dummy: std::marker::PhantomData<'a>,
_dummy: std::marker::PhantomData<&'a ()>,
}

impl<'a> NotificationsBufferSlots<'a> {
Expand All @@ -895,7 +895,7 @@ impl<'a> NotificationsBufferSlots<'a> {
///
/// Panics if the number of items in the `notifications` iterator is different from the number
/// of reserved slots.
pub send(self, notifications: impl Iterator<Item = impl Into<Vec<u8>>>) {
pub fn send(self, notifications: impl Iterator<Item = impl Into<Vec<u8>>>) {
todo!()
}
}
Expand Down