Skip to content

Commit

Permalink
[feat] Release version
Browse files Browse the repository at this point in the history
  • Loading branch information
ppodolsky committed Mar 1, 2024
1 parent 90f5e51 commit f507860
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trident-storage"
version = "0.0.12"
version = "0.0.13"
edition = "2021"

[lib]
Expand Down
10 changes: 5 additions & 5 deletions src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,11 @@ impl Storage {
pub async fn get(&self, key: &str) -> Result<Option<Box<dyn AsyncRead + Unpin + Send>>> {
if let Some(shard_config) = self.hash_ring.range(key, 1).into_iter().next() {
let shard = &self.shards[&shard_config.name];
return match shard.open_store(key).await {
Ok(Some(file)) => Ok(Some(Box::new(file))),
Ok(None) => Ok(None),
Err(e) => Err(Error::io_error(e)),
};
match shard.open_store(key).await {
Ok(Some(file)) => return Ok(Some(Box::new(file))),
Err(e) => return Err(Error::io_error(e)),
Ok(None) => {}
}
}
let entry = self
.iroh_doc
Expand Down

0 comments on commit f507860

Please sign in to comment.