mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
chore: rename maxAttempts option to maxRetries (#485)
* chore: rename maxAttempts to maxRetries * fix: typo
This commit is contained in:
parent
b48a4398cd
commit
6746442254
3 changed files with 5 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ import GlobalUdpSocket from './GlobalUdpSocket.js'
|
|||
const defaultOptions = {
|
||||
socketTimeout: 2000,
|
||||
attemptTimeout: 10000,
|
||||
maxAttempts: 1,
|
||||
maxRetries: 1,
|
||||
stripColors: true,
|
||||
portCache: true,
|
||||
ipFamily: 0
|
||||
|
|
@ -74,7 +74,7 @@ export default class QueryRunner {
|
|||
attempts.push(optionsCollection)
|
||||
}
|
||||
|
||||
const numRetries = userOptions.maxAttempts || gameOptions.maxAttempts || defaultOptions.maxAttempts
|
||||
const numRetries = userOptions.maxRetries || gameOptions.maxRetries || defaultOptions.maxRetries
|
||||
|
||||
let attemptNum = 0
|
||||
const errors = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue