Skip to content

Commit

Permalink
Mark "next number" for future persistence on reset (#1416)
Browse files Browse the repository at this point in the history
This should only have an effect when node numbers are allocated manually but adding just for consistency with startup of a new node.
  • Loading branch information
lauckhart authored Nov 21, 2024
1 parent 835447b commit 2078d66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/node/src/node/storage/EndpointStoreService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export class EndpointStoreFactory extends EndpointStoreService {
this.#construction.start();

this.#allocatedNumbers = new Set();
this.#persistedNextNumber = this.#nextNumber = (this.#defaultNextNumber ?? 1) % 0xffff;
this.#nextNumber = (this.#defaultNextNumber ?? 1) % 0xffff;
this.#persistedNextNumber = undefined;
this.#root = new EndpointStore(this.#storage, false);

await this.construction;
Expand Down

0 comments on commit 2078d66

Please sign in to comment.