Skip to content

Commit

Permalink
refactor: rename "gateway" to "sender"
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Nov 13, 2023
1 parent 05cac7c commit 4f0ea80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tap-agent/src/tap/escrow_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ impl EscrowAdapterTrait for EscrowAdapter {
.get(&sender)
.ok_or(AdapterError::AdapterError {
error: format!(
"Gateway {} not found in escrow balances map, could not get available escrow.",
"Sender {} not found in escrow balances map, could not get available escrow.",
sender
)
.to_string(),
})?
.to_owned();
let balance: u128 = balance.try_into().map_err(|_| AdapterError::AdapterError {
error: format!(
"Gateway {} escrow balance is too large to fit in u128, \
"Sender {} escrow balance is too large to fit in u128, \
could not get available escrow.",
sender
)
Expand All @@ -87,7 +87,7 @@ impl EscrowAdapterTrait for EscrowAdapter {
if current_available_escrow < value {
return Err(AdapterError::AdapterError {
error: format!(
"Gateway {} does not have enough escrow to subtract {} from {}.",
"Sender {} does not have enough escrow to subtract {} from {}.",
sender, value, *fees
)
.to_string(),
Expand Down

0 comments on commit 4f0ea80

Please sign in to comment.