Skip to content

Commit

Permalink
chore: Remove spawned task
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Oct 27, 2023
1 parent 8b74da9 commit 6f01731
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions extensions/warp-ipfs/src/store/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,15 +1154,9 @@ impl MessageStore {
document.signature = Some(signature);
self.conversations.set(document).await?;

tokio::spawn({
let store = self.clone();
let recipient = recipient.clone();
async move {
if let Err(e) = store.request_key(conversation_id, &recipient).await {
error!("Error requesting key: {e}");
}
}
});
if let Err(e) = self.request_key(conversation_id, &recipient).await {
error!("Error requesting key: {e}");
}

if let Err(e) = tx.send(MessageEventKind::RecipientAdded {
conversation_id,
Expand Down

0 comments on commit 6f01731

Please sign in to comment.