fix(interestmap): remove interest from InterestMap immediately after fulfillment
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
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.'
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ export class Interest<DTInterestId, DTInterestFullfillment> {
|
||||
this.isFullfilled = true;
|
||||
this.fullfillmentStore = [];
|
||||
this.interestDeferred.resolve(objectArg);
|
||||
this.destroy(); // Remove from InterestMap immediately after fulfillment
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user