Skip to content

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Jul 29, 2024
1 parent a7d4ac3 commit c4c04bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/lib/object_store/src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ impl dyn ObjectStore + '_ {
pub async fn get<V: StoredObject>(&self, key: V::Key<'_>) -> Result<V, ObjectStoreError> {
let key = V::encode_key(key);
// Record the key for tracing.
tracing::Span::current().record("key", &key.as_str());
tracing::Span::current().record("key", key.as_str());
let bytes = self.get_raw(V::BUCKET, &key).await?;
V::deserialize(bytes).map_err(ObjectStoreError::Serialization)
}
Expand Down Expand Up @@ -178,7 +178,7 @@ impl dyn ObjectStore + '_ {
) -> Result<String, ObjectStoreError> {
let key = V::encode_key(key);
// Record the key for tracing.
tracing::Span::current().record("key", &key.as_str());
tracing::Span::current().record("key", key.as_str());
let bytes = value.serialize().map_err(ObjectStoreError::Serialization)?;
self.put_raw(V::BUCKET, &key, bytes).await?;
Ok(key)
Expand All @@ -197,7 +197,7 @@ impl dyn ObjectStore + '_ {
pub async fn remove<V: StoredObject>(&self, key: V::Key<'_>) -> Result<(), ObjectStoreError> {
let key = V::encode_key(key);
// Record the key for tracing.
tracing::Span::current().record("key", &key.as_str());
tracing::Span::current().record("key", key.as_str());
self.remove_raw(V::BUCKET, &key).await
}

Expand Down

0 comments on commit c4c04bf

Please sign in to comment.