Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Sep 11, 2024
1 parent 7b675bf commit 8e61990
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 5 additions & 2 deletions redis/benches/bench_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ fn bench_simple_getsetdel_async(b: &mut Bencher) {
redis::cmd("SET")
.arg(key)
.arg(42)
.query_async(&mut con)
.query_async::<_, Option<Value>>(&mut con)
.await?;
let _: isize = redis::cmd("GET").arg(key).query_async(&mut con).await?;
redis::cmd("DEL").arg(key).query_async(&mut con).await?;
redis::cmd("DEL")
.arg(key)
.query_async::<_, Option<Value>>(&mut con)
.await?;
Ok::<_, RedisError>(())
})
.unwrap()
Expand Down
11 changes: 9 additions & 2 deletions redis/benches/bench_cluster_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ fn bench_cluster_async(
runtime
.block_on(async {
let key = "test_key";
redis::cmd("SET").arg(key).arg(42).query_async(con).await?;
redis::cmd("SET")
.arg(key)
.arg(42)
.query_async::<_, Option<redis::Value>>(con)
.await?;
let _: isize = redis::cmd("GET").arg(key).query_async(con).await?;
redis::cmd("DEL").arg(key).query_async(con).await?;
redis::cmd("DEL")
.arg(key)
.query_async::<_, Option<redis::Value>>(con)
.await?;

Ok::<_, RedisError>(())
})
Expand Down

0 comments on commit 8e61990

Please sign in to comment.