Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 16c02aa

Browse files
deps: bump p-retry from 6.2.1 to 7.0.0 (#623)
* deps: bump p-retry from 6.2.1 to 7.0.0 Bumps [p-retry](https://github.com/sindresorhus/p-retry) from 6.2.1 to 7.0.0. - [Release notes](https://github.com/sindresorhus/p-retry/releases) - [Commits](sindresorhus/p-retry@v6.2.1...v7.0.0) --- updated-dependencies: - dependency-name: p-retry dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * fixup! resolve breaking changes Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Miroslav Bajtoš <oss@bajtos.net> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent 2e468fd commit 16c02aa

File tree

6 files changed

+20
-25
lines changed

6 files changed

+20
-25
lines changed

bin/cancel-pending-tx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ async function getMessagesInMempool (f4addr) {
104104
const res = await pRetry(
105105
() => fetch(`https://filfox.info/api/v1/message/mempool/filtered-list?address=${f4addr}&pageSize=1000`),
106106
{
107-
async onFailedAttempt (error) {
108-
console.warn(error)
107+
async onFailedAttempt (ctx) {
108+
console.warn(ctx)
109109
console.warn('Filfox request failed. Retrying...')
110110
}
111111
}

lib/evaluate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ export const evaluate = async ({
129129
await pRetry(
130130
() => prepareProviderRetrievalResultStats(round, committees),
131131
{
132-
async onFailedAttempt (error) {
133-
console.warn(error)
132+
async onFailedAttempt (ctx) {
133+
console.warn(ctx)
134134
console.warn(
135135
'Preparing provider retrieval result stats failed. Retrying...'
136136
)

lib/platform-stats.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const updateTopMeasurementParticipants = async (pgClient) => {
254254
await pgClient.query('REFRESH MATERIALIZED VIEW top_measurement_participants_yesterday_mv')
255255
}, {
256256
retries: 3,
257-
onFailedAttempt: (error) => {
257+
onFailedAttempt: ({ error }) => {
258258
console.warn(`Attempt to refresh materialized view failed: ${error.message}. Retrying...`)
259259
}
260260
})

lib/preprocess.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export const preprocess = async ({
6666
attempt => fetchMeasurements(cid, { noCache: attempt > 1 }),
6767
{
6868
retries: fetchRetries,
69-
onFailedAttempt: err => {
69+
onFailedAttempt: ctx => {
7070
if (!fetchRetries) return
71-
console.error(err)
72-
console.error(`Retrying ${cid} ${err.retriesLeft} more times`)
71+
console.error(ctx)
72+
console.error(`Retrying ${cid} ${ctx.retriesLeft} more times`)
7373
}
7474
}
7575
)

package-lock.json

Lines changed: 11 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"ms": "^2.1.3",
4141
"multiformats": "^13.4.0",
4242
"p-map": "^7.0.3",
43-
"p-retry": "^6.2.1",
43+
"p-retry": "^7.0.0",
4444
"pg": "^8.16.3",
4545
"postgrator": "^8.0.0"
4646
},

0 commit comments

Comments
 (0)