fix(pagebench): avoid CopyFail error in success case (#6443)

PR #6392 fixed CopyFail in the case where we get cancelled.
But, we also want to use `client.shutdown()` if we don't get cancelled.
This commit is contained in:
Christian Schwarz
2024-01-23 15:11:32 +01:00
committed by GitHub
parent e03f8abba9
commit 50288c16b1

View File

@@ -423,8 +423,8 @@ async fn client(
tokio::select! {
res = do_requests => { res },
_ = cancel.cancelled() => {
client.shutdown().await;
return;
// fallthrough to shutdown
}
}
client.shutdown().await;
}