fix(interestmap): remove interest from InterestMap immediately after fulfillment
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-01 - 6.2.3 - fix(interestmap)
|
||||||
|
remove interest from InterestMap immediately after fulfillment
|
||||||
|
|
||||||
|
- Call destroy() in fullfillInterest to remove the interest entry from the InterestMap right after resolving interestDeferred.
|
||||||
|
- Prevents stale entries and ensures immediate cleanup of fulfilled interests
|
||||||
|
|
||||||
## 2025-04-25 - 6.2.2 - fix(docs)
|
## 2025-04-25 - 6.2.2 - fix(docs)
|
||||||
Update @push.rocks/tapbundle dependency and refine AsyncExecutionStack documentation examples
|
Update @push.rocks/tapbundle dependency and refine AsyncExecutionStack documentation examples
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/lik',
|
name: '@push.rocks/lik',
|
||||||
version: '6.2.2',
|
version: '6.2.3',
|
||||||
description: 'Provides a collection of lightweight helpers and utilities for Node.js projects.'
|
description: 'Provides a collection of lightweight helpers and utilities for Node.js projects.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ export class Interest<DTInterestId, DTInterestFullfillment> {
|
|||||||
this.isFullfilled = true;
|
this.isFullfilled = true;
|
||||||
this.fullfillmentStore = [];
|
this.fullfillmentStore = [];
|
||||||
this.interestDeferred.resolve(objectArg);
|
this.interestDeferred.resolve(objectArg);
|
||||||
|
this.destroy(); // Remove from InterestMap immediately after fulfillment
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user