diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-21 17:15:51 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-22 19:18:35 +0200 |
commit | 7e49a52cee01a26b91253abb38dcc40b5ae727e2 (patch) | |
tree | 8077400c09864e3208eb042f7c70d4afae3988b1 /src/bin/obnam-server.rs | |
parent | 48139725676fcce89a70897546969623f2474693 (diff) | |
download | obnam2-7e49a52cee01a26b91253abb38dcc40b5ae727e2.tar.gz |
feat! drop generation related fields from chunk metadata
Sponsored-by: author
Diffstat (limited to 'src/bin/obnam-server.rs')
-rw-r--r-- | src/bin/obnam-server.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index 0b80854..5be2cee 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -153,9 +153,7 @@ pub async fn search_chunks( error!("search has more than one key to search for"); return Ok(ChunkResult::BadRequest); } - if key == "generation" && value == "true" { - store.find_generations().expect("SQL lookup failed") - } else if key == "label" { + if key == "label" { store.find_by_label(value).expect("SQL lookup failed") } else { error!("unknown search key {:?}", key); |