chore: rename maxAttempts option to maxRetries (#485)

* chore: rename maxAttempts to maxRetries

* fix: typo
This commit is contained in:
CosminPerRam 2024-01-18 01:15:48 +02:00 committed by GitHub
parent b48a4398cd
commit 6746442254
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 4 deletions

View file

@ -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 = []