635: Staging belt: do not panic by unwrapping send result in recall (fixes #634) r=kvark a=myfreeweb



Co-authored-by: Greg V <greg@unrelenting.technology>
This commit is contained in:
bors[bot] 2020-11-24 16:49:16 +00:00 committed by GitHub
commit e47fe431c0

View File

@ -140,7 +140,10 @@ impl StagingBelt {
.buffer
.slice(..)
.map_async(MapMode::Write)
.inspect(move |_| sender.send(chunk).unwrap())
.inspect(move |_| {
// The only possible error is the other side disconnecting, which is fine
let _ = sender.send(chunk);
})
}))
.map(|_| ())
}