Skip to content

Commit

Permalink
Merge pull request #612 from eco-stake/autostake-grant-timeout
Browse files Browse the repository at this point in the history
Adjust autostake bulk grants timeout
  • Loading branch information
tombeynon authored Sep 28, 2022
2 parents c3ebb37 + 82b3244 commit 66fa909
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/autostake/NetworkRunner.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,14 @@ export default class NetworkRunner {

async getGrantedAddresses(addresses) {
const { botAddress, address } = this.operator
let timeout = this.opts.queryTimeout
let timeout = this.opts.delegationsTimeout
let pageSize = this.opts.batchPageSize
let allGrants
try {
allGrants = await this.queryClient.getGranteeGrants(botAddress, { timeout, pageSize }, (pages) => {
timeStamp("...batch", pages.length)
return this.throttleQuery()
})
timeStamp("...batch", pages.length)
return this.throttleQuery()
})
} catch (e) { }
let grantCalls = addresses.map(item => {
return async () => {
Expand Down

0 comments on commit 66fa909

Please sign in to comment.