Skip to content

Commit

Permalink
retry: Extend Policy trait documentation (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
wutchzone authored Sep 12, 2022
1 parent b12f148 commit 4362dfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tower/src/retry/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ pub trait Policy<Req, Res, E> {

/// Tries to clone a request before being passed to the inner service.
///
/// If the request cannot be cloned, return [`None`].
/// If the request cannot be cloned, return [`None`]. Moreover, the retry
/// function will not be called if the [`None`] is returned.
fn clone_request(&mut self, req: &Req) -> Option<Req>;
}

Expand Down

0 comments on commit 4362dfc

Please sign in to comment.