summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-14 09:00:22 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-14 09:00:22 +0300
commit90fe57e7b5b383195d6155578c00d10549ead0d3 (patch)
treed003972953531c66cad4bc87bcd1f6a44644f979 /src/bin/obnam-server.rs
parentb58261f996883a4f63487a50f48cbb20cf7d8fdb (diff)
downloadobnam2-90fe57e7b5b383195d6155578c00d10549ead0d3.tar.gz
refactor: rename Chunk to DataChunk
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r--src/bin/obnam-server.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs
index 7d37383..cc21855 100644
--- a/src/bin/obnam-server.rs
+++ b/src/bin/obnam-server.rs
@@ -1,6 +1,6 @@
use bytes::Bytes;
use log::{debug, error, info};
-use obnam::{chunk::Chunk, chunkid::ChunkId, chunkmeta::ChunkMeta, index::Index, store::Store};
+use obnam::{chunk::DataChunk, chunkid::ChunkId, chunkmeta::ChunkMeta, index::Index, store::Store};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::default::Default;
@@ -140,7 +140,7 @@ pub async fn create_chunk(
}
};
- let chunk = Chunk::new(data.to_vec());
+ let chunk = DataChunk::new(data.to_vec());
match store.save(&id, &meta, &chunk) {
Ok(_) => (),
@@ -280,7 +280,7 @@ pub async fn delete_chunk(
enum ChunkResult {
Created(ChunkId),
- Fetched(ChunkMeta, Chunk),
+ Fetched(ChunkMeta, DataChunk),
Found(SearchHits),
Deleted,
NotFound,