upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/purgatory/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/purgatory/mod.rs')
-rw-r--r--src/purgatory/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/purgatory/mod.rs b/src/purgatory/mod.rs
index 894c941..9427c71 100644
--- a/src/purgatory/mod.rs
+++ b/src/purgatory/mod.rs
@@ -61,7 +61,7 @@ pub struct Purgatory {
61 /// Maps repository identifier to sync queue entry with timing/backoff state. 61 /// Maps repository identifier to sync queue entry with timing/backoff state.
62 sync_queue: Arc<DashMap<String, SyncQueueEntry>>, 62 sync_queue: Arc<DashMap<String, SyncQueueEntry>>,
63 63
64 git_data_path: PathBuf, 64 _git_data_path: PathBuf,
65} 65}
66 66
67impl Purgatory { 67impl Purgatory {
@@ -71,7 +71,7 @@ impl Purgatory {
71 state_events: Arc::new(DashMap::new()), 71 state_events: Arc::new(DashMap::new()),
72 pr_events: Arc::new(DashMap::new()), 72 pr_events: Arc::new(DashMap::new()),
73 sync_queue: Arc::new(DashMap::new()), 73 sync_queue: Arc::new(DashMap::new()),
74 git_data_path: git_data_path.into(), 74 _git_data_path: git_data_path.into(),
75 } 75 }
76 } 76 }
77 77
@@ -135,7 +135,7 @@ impl Purgatory {
135 if self 135 if self
136 .state_events 136 .state_events
137 .get(identifier) 137 .get(identifier)
138 .map_or(false, |entries| !entries.is_empty()) 138 .is_some_and(|entries| !entries.is_empty())
139 { 139 {
140 return true; 140 return true;
141 } 141 }