Skip to content

Commit ec6238d

Browse files
committed
save changes
1 parent 7b9f660 commit ec6238d

File tree

3 files changed

+531
-1032
lines changed

3 files changed

+531
-1032
lines changed

grpc/src/client/load_balancing/child_manager.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ pub struct ChildManager<T> {
5050
update_sharder: Box<dyn ResolverUpdateSharder<T>>,
5151
pending_work: Arc<Mutex<HashSet<usize>>>,
5252
runtime: Arc<dyn Runtime>,
53-
updated: bool,
5453
}
5554

5655
struct Child<T> {
@@ -95,7 +94,6 @@ impl<T> ChildManager<T> {
9594
children: Default::default(),
9695
pending_work: Default::default(),
9796
runtime,
98-
updated: false,
9997
}
10098
}
10199

@@ -160,14 +158,8 @@ impl<T> ChildManager<T> {
160158
// Update the tracked state if the child produced an update.
161159
if let Some(state) = channel_controller.picker_update {
162160
self.children[child_idx].state = state;
163-
self.updated = true;
164161
};
165162
}
166-
167-
/// Returns true if a child has produced an update and resets flag to false.
168-
pub fn has_updated(&mut self) -> bool {
169-
mem::take(&mut self.updated)
170-
}
171163
}
172164

173165
impl<T: PartialEq + Hash + Eq + Send + Sync + 'static> LbPolicy for ChildManager<T> {
@@ -548,7 +540,6 @@ mod test {
548540
});
549541
},
550542
)),
551-
exit_idle: None,
552543
}
553544
}
554545

0 commit comments

Comments
 (0)