Skip to content

Commit ab6fbda

Browse files
committed
refactor: return as an error
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 97b5679 commit ab6fbda

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tap-agent/src/agent/sender_account.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,13 @@ impl State {
217217
"Error while getting allocation actor {allocation_id} with most unaggregated fees"
218218
);
219219
};
220-
let _ = allocation.cast(SenderAllocationMessage::TriggerRAVRequest);
221-
222-
Ok(())
220+
allocation
221+
.cast(SenderAllocationMessage::TriggerRAVRequest)
222+
.map_err(|e| {
223+
anyhow::anyhow!(
224+
"Error while sending and waiting message for actor {allocation_id}. Error: {e}"
225+
)
226+
})
223227
}
224228

225229
fn deny_condition_reached(&self) -> bool {

0 commit comments

Comments
 (0)