Skip to content

Commit

Permalink
refactor: provideDurableSingleton* use provide to call makeSingleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris-Hibbert authored and erights committed May 21, 2022
1 parent 1834dbc commit 5b87a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vat-data/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const provideDurableSingleton = (
behavior,
options,
);
return makeSingleton();
return provide(baggage, `the_${kindName}`, () => makeSingleton());
};
harden(provideDurableSingleton);

Expand All @@ -123,7 +123,7 @@ export const provideDurableSingletonKit = (
behaviorFacets,
options,
);
return makeSingletonKit();
return provide(baggage, `the_${kindName}`, () => makeSingletonKit());
};
harden(provideDurableSingletonKit);

Expand Down

0 comments on commit 5b87a66

Please sign in to comment.