Skip to content

Commit

Permalink
fix function parameter of trait impl
Browse files Browse the repository at this point in the history
  • Loading branch information
petarjuki7 committed Nov 27, 2024
1 parent 08a559b commit 6b35cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/context/config/src/client/transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ where

async fn try_send(
&self,
req: TransportRequest<'_>,
request: TransportRequest<'_>,
payload: &Vec<u8>,
) -> Option<Result<Vec<u8>, Self::Error>> {
if let Some(result) = self.left.try_send(req.clone(), payload).await {
if let Some(result) = self.left.try_send(request.clone(), payload).await {
return Some(result.map_err(EitherError::Left));
}
if let Some(result) = self.right.try_send(req, payload).await {
if let Some(result) = self.right.try_send(request, payload).await {
return Some(result.map_err(EitherError::Right));
}
None
Expand Down

0 comments on commit 6b35cca

Please sign in to comment.