Skip to content

Commit

Permalink
Update wtx.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r authored and weiznich committed Feb 4, 2025
1 parent 84b78e4 commit 874b97b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diesel_bench/benches/wtx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,13 @@ async fn connection() -> Executor<wtx::Error, ExecutorBuffer, TcpStream> {
.expect("DATABASE_URL must be set in order to run tests");
let uri = UriRef::new(url.as_str());
let mut rng = Xorshift64::from(simple_seed());
let stream = TcpStream::connect(uri.host()).await.unwrap();
stream.set_nodelay(true);
let mut conn = Executor::connect(
&Config::from_uri(&uri).unwrap(),
ExecutorBuffer::with_capacity((512, 8192, 512, 32), 32, &mut rng).unwrap(),
&mut rng,
TcpStream::connect(uri.host()).await.unwrap(),
stream,
)
.await
.unwrap();
Expand Down

0 comments on commit 874b97b

Please sign in to comment.