Skip to content

Commit

Permalink
Fix in code condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Mar 19, 2024
1 parent dca4d0b commit 11c8326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub async fn send_tx(
.get_relayer_pending_txs(api_token.relayer_id())
.await?;

if relayer_queued_tx_count >= relayer.max_queued_txs as usize {
if relayer_queued_tx_count > relayer.max_queued_txs as usize {
return Err(ApiError::TooManyTransactions {
max: relayer.max_queued_txs as usize,
current: relayer_queued_tx_count,
Expand Down

0 comments on commit 11c8326

Please sign in to comment.