···135135136136/// returns `true` if backfill should stop.
137137async fn do_actor_duplicate_check(rc: &mut MultiplexedConnection, did: &str) -> bool {
138138- match rc.sismember(BF_DUPL_SET, &did).await {
138138+ match rc.sismember(BF_DUPL_SET, did).await {
139139 Ok(true) => {
140140 tracing::info!("skipping duplicate repo {did}");
141141 true
142142 }
143143 Ok(false) => {
144144- if let Err(e) = rc.sadd(BF_DUPL_SET, &did).await {
144144+ if let Err(e) = rc.sadd(BF_DUPL_SET, did).await {
145145 tracing::error!("failed to update bf_duplicate: {e}");
146146 true
147147 } else {
+2-2
crates/consumer/src/backfill/utils.rs
···195195 }
196196 };
197197198198- let _ = rc.zadd(BF_REM_KEY, &pds, new_rem).await;
199199- let _ = rc.zadd(BF_RESET_KEY, &pds, new_reset).await;
198198+ let _ = rc.zadd(BF_REM_KEY, pds, new_rem).await;
199199+ let _ = rc.zadd(BF_RESET_KEY, pds, new_reset).await;
200200201201 Ok(())
202202}
+3-3
crates/consumer/src/indexer/mod.rs
···205205 }
206206 }
207207208208- let tgt_idx = self.hasher.hash_one(&did) % threads;
208208+ let tgt_idx = self.hasher.hash_one(did) % threads;
209209210210 if let Err(e) = submit[tgt_idx as usize].send(event).await {
211211 tracing::error!("Error sending event: {e}");
···272272273273 // finally, check if the event did matches the handle, if not, set invalid, otherwise set the handle.
274274 if did == &*handle_did {
275275- return Ok(Some(handle));
275275+ Ok(Some(handle))
276276 } else {
277277- return Ok(None);
277277+ Ok(None)
278278 }
279279}
280280