Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
brayniac committed Jul 2, 2024
1 parent 733c443 commit a1b205d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
11 changes: 8 additions & 3 deletions src/clients/momento/commands/sorted_set_increment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
6 changes: 5 additions & 1 deletion src/clients/momento/commands/sorted_set_score.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a1b205d

Please sign in to comment.