From acb8c1551b4badd706c03b51381f457f17b1aa80 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 23 Jul 2020 17:15:57 +0300 Subject: [PATCH] fix: unused variables for query command --- src/channel.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/channel.rs b/src/channel.rs index 04ab784..ea1ef54 100644 --- a/src/channel.rs +++ b/src/channel.rs @@ -189,6 +189,17 @@ impl SonicChannel { use FlushCommand for fn flushc<'a>( collection: &'a str, ); + + use FlushCommand for fn flushb<'a>( + collection: &'a str, + bucket: &'a str => Some(bucket), + ); + + use FlushCommand for fn flusho<'a>( + collection: &'a str, + bucket: &'a str => Some(bucket), + object: &'a str => Some(object), + ); } #[cfg(feature = "search")] @@ -211,7 +222,7 @@ impl SonicChannel { bucket: &'a str, terms: &'a str, limit: usize => Some(limit), - offset: usize => Some(limit), + offset: usize => Some(offset), ); use SuggestCommand for fn suggest<'a>(