summaryrefslogtreecommitdiff
path: root/src/bin/obnam-server.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-05-29 11:39:31 +0300
committerLars Wirzenius <liw@liw.fi>2021-05-29 15:02:31 +0300
commite839c5f1c93e1fe024a2656d319721a7b23c6461 (patch)
tree3828b84f7e46d8f9976d1a828e8625e22f79c84a /src/bin/obnam-server.rs
parent03a8b0f9cba08ad09cb8494579f6e318aee762f4 (diff)
downloadobnam2-e839c5f1c93e1fe024a2656d319721a7b23c6461.tar.gz
refactor: count chunks via file system, not via chunk server API
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r--src/bin/obnam-server.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs
index efee77e..29ea9ff 100644
--- a/src/bin/obnam-server.rs
+++ b/src/bin/obnam-server.rs
@@ -155,8 +155,6 @@ pub async fn search_chunks(
}
if key == "generation" && value == "true" {
store.find_generations().expect("SQL lookup failed")
- } else if key == "data" && value == "true" {
- store.find_file_chunks().expect("SQL lookup failed")
} else if key == "sha256" {
store.find_by_sha256(value).expect("SQL lookup failed")
} else {