Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

Commit

Permalink
fix(transport): Load balance connecting panic (hyperium#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco authored and rabbitinspace committed Jan 1, 2020
1 parent 1d11b35 commit a025edc
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 a025edc

Please sign in to comment.