2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00
This commit is contained in:
asonix 2023-07-26 22:53:41 -05:00
parent 83e9f537fe
commit 5f12be0c6a
2 changed files with 2 additions and 3 deletions

View file

@ -112,8 +112,7 @@ where
Ok(session) => { Ok(session) => {
let alias = session.alias().take().expect("Alias should exist").clone(); let alias = session.alias().take().expect("Alias should exist").clone();
let token = session.disarm(); let token = session.disarm();
let result = UploadResult::Success { alias, token }; UploadResult::Success { alias, token }
result
} }
Err(e) => { Err(e) => {
tracing::warn!("Failed to ingest\n{}\n{}", format!("{e}"), format!("{e:?}")); tracing::warn!("Failed to ingest\n{}\n{}", format!("{e}"), format!("{e:?}"));

View file

@ -1184,7 +1184,7 @@ impl HashRepo for SledRepo {
fn hash_alias_key(hash: &IVec, alias: &IVec) -> Vec<u8> { fn hash_alias_key(hash: &IVec, alias: &IVec) -> Vec<u8> {
let mut v = hash.to_vec(); let mut v = hash.to_vec();
v.extend_from_slice(&alias); v.extend_from_slice(alias);
v v
} }