diff options
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, |