diff --git a/object_store/src/aws/dynamo.rs b/object_store/src/aws/dynamo.rs index bb4327d8e537..fd5f33d65088 100644 --- a/object_store/src/aws/dynamo.rs +++ b/object_store/src/aws/dynamo.rs @@ -62,7 +62,7 @@ pub(crate) async fn copy_if_not_exists( let mut previous_lease = None; loop { - match try_lock(&client, table_name, to.as_ref(), previous_lease.as_ref()).await? { + match try_lock(client, table_name, to.as_ref(), previous_lease.as_ref()).await? { TryLockResult::Ok(lease) => { let fut = client.copy_request(from, to, None); return match tokio::time::timeout_at(lease.timeout().into(), fut).await { @@ -133,7 +133,7 @@ async fn try_lock( let ttl = (Utc::now() + LEASE_TTL).timestamp(); let items = [ - ("key", AttributeValue::String(&key)), + ("key", AttributeValue::String(key)), ("generation", AttributeValue::Number(next_gen)), ("ttl", AttributeValue::Number(ttl as _)), ]; @@ -154,7 +154,7 @@ async fn try_lock( let acquire = Instant::now(); let builder = match &s3.config.endpoint { - None => s3.client.post(&format!( + None => s3.client.post(format!( "https://dynamodb.{}.amazonaws.com", s3.config.region )),