From 4f0ea80e4e9d8cdb3b4dfaec00b4b8fb719148ff Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Mon, 13 Nov 2023 14:28:45 -0800 Subject: [PATCH] refactor: rename "gateway" to "sender" Signed-off-by: Alexis Asseman --- tap-agent/src/tap/escrow_adapter.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tap-agent/src/tap/escrow_adapter.rs b/tap-agent/src/tap/escrow_adapter.rs index 5a0a62ab..b5957145 100644 --- a/tap-agent/src/tap/escrow_adapter.rs +++ b/tap-agent/src/tap/escrow_adapter.rs @@ -55,7 +55,7 @@ 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(), @@ -63,7 +63,7 @@ impl EscrowAdapterTrait for EscrowAdapter { .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 ) @@ -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(),