Replace the panic in the merge function by actual errors

This commit is contained in:
Clément Renault 2020-10-20 15:14:06 +02:00
parent 8ed8abb9df
commit cde8478388
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 21 additions and 23 deletions

View file

@ -377,7 +377,7 @@ pub fn run(opt: Opt) -> anyhow::Result<()> {
let meta = String::from("I am the metadata");
let update_id = update_store.register_update(&meta, &mmap[..]).unwrap();
update_status_sender.send(UpdateStatus::Pending { update_id, meta }).unwrap();
let _ = update_status_sender.send(UpdateStatus::Pending { update_id, meta });
eprintln!("update {} registered", update_id);
Ok(warp::reply())