Skip to content

Commit 7e380ff

Browse files
committed
svs: change SVS v3 prefix announcement name
named-data/StateVectorSync#21
1 parent 7be8c1c commit 7e380ff

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

pkg/svs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ This package contains **StateVectorSync** and related protocols, including:
88
* deprecated, enable with `svs3: false` option
99
* partial unit test
1010
* core synchronization logic only, does not deal with Data fetching
11-
* [StateVectorSync v3](https://named-data.github.io/StateVectorSync/Specification.html), revision 2025-01-14
11+
* [StateVectorSync v3](https://named-data.github.io/StateVectorSync/Specification.html), revision 2026-07-17
1212
* complete unit test
1313
* core synchronization logic only, does not deal with Data fetching
1414
* [SVS-PS](https://named-data.github.io/StateVectorSync/PubSubSpec.html), revision 2025-01-04
15+
* only validated with SVS v2 (`svs3: false` option)
1516
* simple unit test
1617
* piggyback MappingData feature is not supported
1718

pkg/svs/src/sync.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ export class SvSync extends TypedEventTarget<EventMap> implements SyncProtocol<S
8787
describe: this.describe,
8888
routeCapture: false,
8989
});
90-
this.face.addRoute(this.syncDataName, this.groupPrefix);
90+
91+
if (this.svs3) {
92+
this.face.addRoute(this.syncDataName);
93+
} else {
94+
this.face.addRoute(this.syncDataName, this.groupPrefix);
95+
}
9196
}
9297

9398
private readonly maybeHaveEventListener = trackEventListener(this);

0 commit comments

Comments
 (0)