-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35e9a81
commit e57dbe2
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
diff --git a/exercises/031_rate_limiting.sh b/exercises/031_rate_limiting.sh | ||
index d32f976..9e28a6b 100755 | ||
index d32f976..88f5f76 100755 | ||
--- a/exercises/031_rate_limiting.sh | ||
+++ b/exercises/031_rate_limiting.sh | ||
@@ -13,7 +13,7 @@ tb "create_transfers id=31000 debit_account_id=3100 credit_account_id=3101 amoun | ||
@@ -13,8 +13,8 @@ tb "create_transfers id=31000 debit_account_id=3100 credit_account_id=3101 amoun | ||
|
||
# Now, each time the user makes a request, we'll create a pending transfer with a timeout to temporarily debit the user's account. | ||
# How long should the timeout be? (Hint: the timeout is an interval in seconds.) | ||
-TIMEOUT=??? | ||
-for ((i=1; i<=11; i++)); do | ||
+TIMEOUT=60 | ||
for ((i=1; i<=11; i++)); do | ||
+for ((i=1; i<=10; i++)); do | ||
id=$((31000 + i)) | ||
tb "create_transfers id=${id} debit_account_id=3101 credit_account_id=3100 amount=1 timeout=${TIMEOUT} ledger=310 code=10 flags=pending;" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters