Skip to content

Commit

Permalink
Merge pull request #613 from hatoo/fix-blocking
Browse files Browse the repository at this point in the history
Avoid tx.send() blocking on work_until_with_qps
  • Loading branch information
hatoo authored Nov 27, 2024
2 parents 468c858 + af326f6 commit 8e12fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ pub async fn work_until_with_qps(
) {
let rx = match query_limit {
QueryLimit::Qps(qps) => {
let (tx, rx) = flume::bounded(qps);
let (tx, rx) = flume::unbounded();
tokio::spawn(async move {
for i in 0.. {
if std::time::Instant::now() > dead_line {
Expand Down

0 comments on commit 8e12fe7

Please sign in to comment.