diff --git a/src/client/request_strategy.rs b/src/client/request_strategy.rs index e0053f91d..e72edfd42 100644 --- a/src/client/request_strategy.rs +++ b/src/client/request_strategy.rs @@ -52,6 +52,12 @@ impl RequestStrategy { } } + #[cfg(feature = "uuid")] + pub fn idempotent_with_uuid() -> Self { + use uuid::Uuid; + Self::Idempotent(Uuid::new_v4().to_string()) + } + pub fn get_key(&self) -> Option { match self { RequestStrategy::Once => None,