Skip to content

Commit 7b1fdf6

Browse files
committed
commented out an unnecessary notify in shardedringbuf.rs
1 parent a1acc40 commit 7b1fdf6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/shardedringbuf.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,13 @@ impl<T> ShardedRingBuf<T> {
307307
}
308308
}
309309

310-
if matches!(acquire, Acquire::Dequeue) {
311-
self.job_post_shard_notifs[shard_ind].notified().await;
312-
} else {
313-
self.job_space_shard_notifs[shard_ind].notified().await;
314-
}
310+
// You don't need this part; you only need to send a notif on release
311+
// of the shard
312+
// if matches!(acquire, Acquire::Dequeue) {
313+
// self.job_post_shard_notifs[shard_ind].notified().await;
314+
// } else {
315+
// self.job_space_shard_notifs[shard_ind].notified().await;
316+
// }
315317
}
316318
// current
317319
}

0 commit comments

Comments
 (0)