async_client: Don't double pin futures.
This commit is contained in:
parent
8c681c362a
commit
69a18e9d3a
1 changed files with 1 additions and 2 deletions
|
@ -244,8 +244,7 @@ impl AsyncClient {
|
|||
|
||||
if self.event_callbacks.contains_key(&event_type) {
|
||||
let cb = self.event_callbacks.get_mut(&event_type).unwrap();
|
||||
let future = Pin::from(cb(event.clone()));
|
||||
future.await;
|
||||
cb(event.clone()).await;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue