File tree Expand file tree Collapse file tree 3 files changed +531
-1032
lines changed
grpc/src/client/load_balancing Expand file tree Collapse file tree 3 files changed +531
-1032
lines changed Original file line number Diff line number Diff 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
5655struct 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
173165impl < 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
You can’t perform that action at this time.
0 commit comments