Skip to content

Commit e8c8c90

Browse files
authored
Merge pull request #82 from cgwalters/drop-double-wrap
proxy: Drop double-wrapping in `RequestInitiationError`
2 parents 060e435 + b5a74f7 commit e8c8c90

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/imageproxy.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,7 @@ impl ImageProxy {
446446
let req = Self::impl_request_raw(Arc::clone(&self.sockfd), Request::new(method, args));
447447
let mut childwait = self.childwait.lock().await;
448448
tokio::select! {
449-
r = req => {
450-
r.map_err(|e| Error::RequestInitiationFailure {
451-
method: method.to_string().into(),
452-
error: e.to_string().into()
453-
})
454-
}
449+
r = req => { r }
455450
r = childwait.as_mut() => {
456451
let r = r.map_err(|e| Error::Other(e.to_string().into()))??;
457452
let stderr = String::from_utf8_lossy(&r.stderr);

0 commit comments

Comments
 (0)