diff --git a/src/clients/momento/commands/sorted_set_increment.rs b/src/clients/momento/commands/sorted_set_increment.rs index a6744150..6f602740 100644 --- a/src/clients/momento/commands/sorted_set_increment.rs +++ b/src/clients/momento/commands/sorted_set_increment.rs @@ -14,14 +14,19 @@ pub async fn sorted_set_increment( ) -> std::result::Result<(), ResponseError> { SORTED_SET_INCR.increment(); - let r = SortedSetIncrementScoreRequest::new(cache_name, &*request.key, &*request.member, request.amount) - .ttl(CollectionTtl::new(request.ttl, false)); + let r = SortedSetIncrementScoreRequest::new( + cache_name, + &*request.key, + &*request.member, + request.amount, + ) + .ttl(CollectionTtl::new(request.ttl, false)); let result = timeout( config.client().unwrap().request_timeout(), client.send_request(r), ) .await; - + record_result!(result, SORTED_SET_INCR) } diff --git a/src/clients/momento/commands/sorted_set_score.rs b/src/clients/momento/commands/sorted_set_score.rs index b091b741..699f0644 100644 --- a/src/clients/momento/commands/sorted_set_score.rs +++ b/src/clients/momento/commands/sorted_set_score.rs @@ -24,7 +24,11 @@ pub async fn sorted_set_score( } else { let result = timeout( config.client().unwrap().request_timeout(), - client.sorted_set_get_scores(cache_name, &*request.key, request.members.iter().map(|f| &**f)), + client.sorted_set_get_scores( + cache_name, + &*request.key, + request.members.iter().map(|f| &**f), + ), ) .await;