Skip to content

Commit

Permalink
docs: correct description of SIMULATED_REQUEST_FAILURE_RATE
Browse files Browse the repository at this point in the history
The range is from 0 to 1 rather than 0 to Infinity. If set to 1, all
requests will fail.
  • Loading branch information
djwhitt committed Sep 25, 2023
1 parent 79e9ed1 commit eb843a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# AR.IO node exposed port number
# PORT=4000

# Number from 0 to Infinity, representing the probability of a request failing
# Number from 0 to 1, representing the probability of a request failing
# SIMULATED_REQUEST_FAILURE_RATE=0

# Arweave wallet address used for staking and rewards
Expand Down
2 changes: 1 addition & 1 deletion docs/envs.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This document describes the environment variables that can be used to configure
| LOG_FORMAT | String | "simple" | Sets the format of output logs, accepts "simple" and "json" |
| SKIP_CACHE | Boolean | false | If true, use indexed data as a cache and skip fetching data from the node |
| PORT | Number | 4000 | AR.IO node exposed port number |
| SIMULATED_REQUEST_FAILURE_RATE | Number | 0 | Number from 0 to Infinity, representing the probability of a request failing |
| SIMULATED_REQUEST_FAILURE_RATE | Number | 0 | Number from 0 to 1, representing the probability of a request failing |
| AR_IO_WALLET | String | "" | Arweave wallet address used for staking and rewards |
| ADMIN_API_KEY | String | Generated | API key used for admin API requests (if not set, it's generated and logged into the console) |
| BACKFILL_BUNDLE_RECORDS | Boolean | false | If true, ar.io node will start indexing missing bundles |
Expand Down

0 comments on commit eb843a7

Please sign in to comment.