balance: Fix tokio-sync channel poll fn

This commit is contained in:
Lucio Franco 2019-09-11 16:27:02 -04:00
parent bd62f64d6c
commit 67a9e27177
No known key found for this signature in database
GPG Key ID: 20DB2D1FCD10BDC1
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
use super::p2c::Balance;
use crate::error;
use futures_core::{ready, Stream};
use futures_core::ready;
use pin_project::pin_project;
use slab::Slab;
use std::{
@ -78,7 +78,7 @@ where
) -> Poll<Result<Change<Self::Key, Self::Service>, Self::Error>> {
let mut this = self.project();
while let Poll::Ready(Some(sid)) = this.died_rx.as_mut().poll_next(cx) {
while let Poll::Ready(Some(sid)) = this.died_rx.as_mut().poll_recv(cx) {
this.services.remove(sid);
tracing::trace!(
pool.services = this.services.len(),