Skip to content

Commit

Permalink
Merge pull request #1098 from getlipa/mock/trim-mock-commands
Browse files Browse the repository at this point in the history
Trim mock commands
  • Loading branch information
gcomte authored Jun 5, 2024
2 parents e716956 + c991546 commit 371eff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/breez-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl BreezServices {
req: ReceivePaymentRequest,
) -> Result<ReceivePaymentResponse, ReceivePaymentError> {
// Has nothing to do with receiving a payment, but is a mechanism to control the mock
match req.description.to_lowercase().as_str() {
match req.description.trim().to_lowercase().as_str() {
"health.operational" => *HEALTH_STATUS.lock().unwrap() = HealthCheckStatus::Operational,
"health.maintenance" => *HEALTH_STATUS.lock().unwrap() = HealthCheckStatus::Maintenance,
"health.disruption" => {
Expand Down

0 comments on commit 371eff0

Please sign in to comment.