Skip to content

Commit

Permalink
Fix a bug in Alo
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Feb 24, 2024
1 parent 76a0320 commit e463860
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 34 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"url": "https://github.com/UCLA-IRL/ndnts-aux/issues"
},
"dependencies": {
"@ndn/sync-api": "https://ndnts-nightly.ndn.today/sync-api.tgz",
"event-iterator": "^2.0.0",
"eventemitter3": "^5.0.1",
"jose": "^5.2.2",
Expand Down
64 changes: 31 additions & 33 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/sync-agent/deliveries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class AtLeastOnceDelivery extends SyncDelivery {
for (; newSeq < lastSeen; newSeq++) {
// This can be optimized with some data structure like C++ set, but not now.
const dataName = updateBaseName.append(SequenceNum.create(newSeq + 1));
if (!this.storage.has(dataName.toString())) {
if (!await this.storage.has(dataName.toString())) {
break;
}
}
Expand Down
Loading

0 comments on commit e463860

Please sign in to comment.