Skip to content

Commit

Permalink
Latest stable lints
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Snaps <[email protected]>
  • Loading branch information
alexsnaps committed Oct 8, 2024
1 parent b1d2651 commit fce468e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions limitador/src/storage/redis/redis_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl AsyncCounterStorage for AsyncRedisStorage {
.key(key_for_counters_of_limit(counter.limit()))
.arg(counter.window().as_secs())
.arg(delta)
.invoke_async::<_>(&mut con)
.invoke_async::<()>(&mut con)
.instrument(info_span!("datastore"))
.await?;

Expand Down Expand Up @@ -128,7 +128,7 @@ impl AsyncCounterStorage for AsyncRedisStorage {
.ignore();
}
pipeline
.query_async(&mut con)
.query_async::<()>(&mut con)
.instrument(info_span!("datastore"))
.await?;

Expand Down Expand Up @@ -198,7 +198,7 @@ impl AsyncCounterStorage for AsyncRedisStorage {
async fn clear(&self) -> Result<(), StorageErr> {
let mut con = self.conn_manager.clone();
redis::cmd("FLUSHDB")
.query_async::<_>(&mut con)
.query_async::<()>(&mut con)
.instrument(info_span!("datastore"))
.await?;
Ok(())
Expand Down

0 comments on commit fce468e

Please sign in to comment.