Skip to content

Commit f52195f

Browse files
committed
Extend retry time for dev to 1 hr
1 parent c096279 commit f52195f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/wikiUpdates.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface ApiResponse {
1212

1313
const myCache = new NodeCache({ stdTTL: 100, checkperiod: 120 })
1414

15-
const retryTime = 30000
15+
const retryTime = 36000
1616
const notifyCount = 20 // every 20 count interval = 10mins
1717
@singleton()
1818
export default class WikiUpdates {
@@ -162,7 +162,7 @@ export default class WikiUpdates {
162162
retryTime / 1000
163163
} seconds...`,
164164
)
165-
await new Promise(r => setTimeout(r, retryTime))
165+
await new Promise(r => setTimeout(r, channelType === ChannelTypes.DEV ? retryTime * 100 : retryTime))
166166
await this.makeApiCall(link, query, channelType, (count += 1))
167167
}
168168
}

0 commit comments

Comments
 (0)