2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +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) => {
let alias = session.alias().take().expect("Alias should exist").clone();
let token = session.disarm();
let result = UploadResult::Success { alias, token };
result
UploadResult::Success { alias, token }
}
Err(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> {
let mut v = hash.to_vec();
v.extend_from_slice(&alias);
v.extend_from_slice(alias);
v
}