pub fn add_peer_context_if_needed(datanode: Peer) -> impl FnOnce(Error) -> Error
Adds Peer context if the error is unretryable.