diff --git a/limitador/src/storage/redis/redis_async.rs b/limitador/src/storage/redis/redis_async.rs index ebeba761..fca8964f 100644 --- a/limitador/src/storage/redis/redis_async.rs +++ b/limitador/src/storage/redis/redis_async.rs @@ -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?; @@ -128,7 +128,7 @@ impl AsyncCounterStorage for AsyncRedisStorage { .ignore(); } pipeline - .query_async(&mut con) + .query_async::<()>(&mut con) .instrument(info_span!("datastore")) .await?; @@ -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(())