fix(transport): Load balance connecting panic (#128)

Closes #127
This commit is contained in:
Lucio Franco
2019-11-10 16:28:05 +01:00
committed by GitHub
parent b2c1d2e2b7
commit 23e7695800
+1
View File
@@ -38,6 +38,7 @@ impl Discover for ServiceList {
loop {
if let Some(connecting) = &mut self.connecting {
let svc = futures_core::ready!(Pin::new(connecting).poll(cx))?;
self.connecting = None;
let i = self.i;
self.i += 1;