Skip to content

Commit

Permalink
reset the read flag
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Oct 25, 2024
1 parent cc72255 commit 89314af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/data_loader/dedupe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ impl<K: Key, V: Value> Dedupe<K, V> {
{
let mut read = true;
loop {
let value = match self.step(key, read) {
let step = self.step(key, read);
read = true;
let value = match step {
Step::Return(value) => value,
Step::Await(mut rx) => match rx.recv().await {
Ok(value) => value,
Expand Down

0 comments on commit 89314af

Please sign in to comment.