diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-12 21:21:19 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-26 17:19:55 +0300 |
commit | 69f2b3d9495cb4e8cff8eff4a49ac944dafee1ad (patch) | |
tree | 6943cc3a21d482c75c38fe36eabbb3d95e333a93 /src/chunkstore.rs | |
parent | 383cff243c8937e31c48145a2422a99ff2109f6e (diff) | |
download | obnam2-69f2b3d9495cb4e8cff8eff4a49ac944dafee1ad.tar.gz |
use new ChunkStore for remote has_chunk
Sponsored-by: author
Diffstat (limited to 'src/chunkstore.rs')
-rw-r--r-- | src/chunkstore.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chunkstore.rs b/src/chunkstore.rs index f421805..1f67e2f 100644 --- a/src/chunkstore.rs +++ b/src/chunkstore.rs @@ -50,7 +50,11 @@ impl ChunkStore { /// Store a chunk in the store. /// /// The store chooses an id for the chunk. - pub async fn put(&mut self, chunk: EncryptedChunk, meta: &ChunkMeta) -> Result<ChunkId, StoreError> { + pub async fn put( + &mut self, + chunk: EncryptedChunk, + meta: &ChunkMeta, + ) -> Result<ChunkId, StoreError> { match self { Self::Local(store) => store.put(chunk, meta), Self::Remote(store) => store.put(chunk, meta).await, |