async_client: Don't double pin futures.
parent
8c681c362a
commit
69a18e9d3a
|
@ -244,8 +244,7 @@ impl AsyncClient {
|
||||||
|
|
||||||
if self.event_callbacks.contains_key(&event_type) {
|
if self.event_callbacks.contains_key(&event_type) {
|
||||||
let cb = self.event_callbacks.get_mut(&event_type).unwrap();
|
let cb = self.event_callbacks.get_mut(&event_type).unwrap();
|
||||||
let future = Pin::from(cb(event.clone()));
|
cb(event.clone()).await;
|
||||||
future.await;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue