Skip to content

Commit 23e7695

Browse files
authored
fix(transport): Load balance connecting panic (#128)
Closes #127
1 parent b2c1d2e commit 23e7695

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tonic/src/transport/service/discover.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ impl Discover for ServiceList {
3838
loop {
3939
if let Some(connecting) = &mut self.connecting {
4040
let svc = futures_core::ready!(Pin::new(connecting).poll(cx))?;
41+
self.connecting = None;
4142

4243
let i = self.i;
4344
self.i += 1;

0 commit comments

Comments
 (0)