Skip to content

Commit

Permalink
Require for TStatusPayload of StatusOperationMessage (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Dec 16, 2023
1 parent e65dbe1 commit 6852863
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/actors/packets/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ fn schedule_status_check<TActor, TMessage, TStatusPayload, TStatusCheckFunc>(
TMessage: Message + Send + 'static + Clone,
TMessage::Result: Send,
TActor::Context: ToEnvelope<TActor, TMessage>,
TStatusPayload: Send,
TStatusPayload: Send + 'static,
TStatusCheckFunc: FnOnce(&Option<PacketStatus<TStatusPayload>>) -> bool + Send + 'static,
{
let error_recipient = error_recipient.clone();
Expand Down Expand Up @@ -136,7 +136,7 @@ where
TMessage: Message + Send + 'static,
TMessage::Result: Send,
TActor::Context: ToEnvelope<TActor, TMessage>,
TStatusPayload: Send,
TStatusPayload: Send + 'static,
{
if let Err(e) = status_recipient.try_send(status_message) {
let addr = ctx.address();
Expand All @@ -161,7 +161,7 @@ where
TMessage: Message + Send + 'static,
TMessage::Result: Send,
TActor::Context: ToEnvelope<TActor, TMessage>,
TStatusPayload: Send,
TStatusPayload: Send + 'static,
{
if let Err(e) = status_recipient.try_send(StatusOperationMessage::RemovePacketStatus(id)) {
let addr = ctx.address();
Expand Down

0 comments on commit 6852863

Please sign in to comment.