fix clippy
This commit is contained in:
parent
708dab6e0f
commit
8fb8569912
1 changed files with 2 additions and 3 deletions
|
@ -597,11 +597,10 @@ impl<F: TableSchema + 'static, R: TableReplication + 'static> Worker for SyncWor
|
||||||
|
|
||||||
async fn wait_for_work(&mut self, _must_exit: &watch::Receiver<bool>) -> WorkerStatus {
|
async fn wait_for_work(&mut self, _must_exit: &watch::Receiver<bool>) -> WorkerStatus {
|
||||||
select! {
|
select! {
|
||||||
s = self.add_full_sync_rx.recv() => match s {
|
s = self.add_full_sync_rx.recv() => {
|
||||||
Some(()) => {
|
if let Some(()) = s {
|
||||||
self.add_full_sync();
|
self.add_full_sync();
|
||||||
}
|
}
|
||||||
None => (),
|
|
||||||
},
|
},
|
||||||
_ = self.ring_recv.changed() => {
|
_ = self.ring_recv.changed() => {
|
||||||
let new_ring = self.ring_recv.borrow();
|
let new_ring = self.ring_recv.borrow();
|
||||||
|
|
Loading…
Reference in a new issue