Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve-Mcl committed Sep 11, 2024
1 parent 22ae18b commit 691eae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class Agent {
}
// We have been provided a broker URL to use
this.mqttClient = mqttClient.newMQTTClient(this, this.config)
// Wait a short random delay to reduce stress on broker when large numbers of devices come on-line
await new Promise(r => setTimeout(r, randomInt(20, 5000)));
// Wait a short random delay to reduce stress on broker when large numbers of devices come on-line
await new Promise(_resolve => setTimeout(_resolve, randomInt(20, 5000)))
this.mqttClient.start()
this.mqttClient.setApplication(this.currentApplication)
this.mqttClient.setProject(this.currentProject)
Expand Down

0 comments on commit 691eae7

Please sign in to comment.