Skip to content

Commit

Permalink
Let latestOnly silently continue on error
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Feb 2, 2024
1 parent 2db853d commit 1ef89c6
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 45 deletions.
1 change: 1 addition & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ucla-irl/ndnts-aux",
"version": "1.0.11-rc1",
"version": "1.0.11",
"description": "NDNts Auxiliary Package for Web and Deno",
"scripts": {
"test": "deno test --no-check",
Expand Down
103 changes: 61 additions & 42 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/sync-agent/deliveries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,9 @@ export class LatestOnlyDelivery extends SyncDelivery {
// Callback
// LatestOnlyDelivery does not need to wait for this callback
this._onUpdate!(data.content, update.id, this);
} catch (error) {
console.error(`Unable to fetch or verify ${name.toString()} due to: `, error);
} catch {
// console.error(`Unable to fetch or verify ${name.toString()} due to: `, error);
// Silently continue
}
}

Expand Down

0 comments on commit 1ef89c6

Please sign in to comment.