Skip to content

Commit

Permalink
fix(transport): Load balance connecting panic (#128)
Browse files Browse the repository at this point in the history
Closes #127
  • Loading branch information
LucioFranco authored Nov 10, 2019
1 parent b2c1d2e commit 23e7695
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tonic/src/transport/service/discover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23e7695

Please sign in to comment.