mirror of https://github.com/fafhrd91/actix-web
fixes according to review
This commit is contained in:
parent
152735be39
commit
f06d46ef3e
|
@ -65,8 +65,8 @@ where
|
||||||
|
|
||||||
// start support future
|
// start support future
|
||||||
actix_rt::spawn(ConnectorPoolSupport {
|
actix_rt::spawn(ConnectorPoolSupport {
|
||||||
connector: connector_rc.clone(),
|
connector: Rc::clone(&connector_rc),
|
||||||
inner: inner_rc.clone(),
|
inner: Rc::clone(&inner_rc),
|
||||||
});
|
});
|
||||||
|
|
||||||
ConnectionPool(connector_rc, inner_rc)
|
ConnectionPool(connector_rc, inner_rc)
|
||||||
|
@ -84,7 +84,7 @@ where
|
||||||
|
|
||||||
impl<T, Io> Drop for ConnectionPool<T, Io> {
|
impl<T, Io> Drop for ConnectionPool<T, Io> {
|
||||||
fn drop(&mut self) {
|
fn drop(&mut self) {
|
||||||
// We wake up the ConnectorPoolSupport when dropping so it can exit properly.
|
// wake up the ConnectorPoolSupport when dropping so it can exit properly.
|
||||||
self.1.borrow().waker.wake();
|
self.1.borrow().waker.wake();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue