Skip to content

Commit

Permalink
fix(tap-agent): log error in rav request
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo Inacio <[email protected]>
  • Loading branch information
gusinacio committed Jul 8, 2024
1 parent 1bdb846 commit d9fe4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tap-agent/src/agent/sender_allocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ impl Actor for SenderAllocation {
SenderAllocationMessage::TriggerRAVRequest(reply) => {
if state.unaggregated_fees.value > 0 {
// auto backoff retry, on error ignore
let _ = state.request_rav().await;
if let Err(err) = state.request_rav().await {
error!(error = %err, "Error while requesting rav.");
}
}
if !reply.is_closed() {
let _ = reply.send((state.unaggregated_fees.clone(), state.latest_rav.clone()));
Expand Down

0 comments on commit d9fe4d2

Please sign in to comment.