Skip to content

Commit

Permalink
refactor(CORE): [CORE] Migrate to Meteor 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
plbkbx committed Feb 26, 2024
1 parent cb92243 commit 0f987d0
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions lib/mongo/OptimisticInvocation.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,4 @@
import { AsyncLocalStorage } from 'async_hooks';

class OptimisticInvocation {
constructor() {
this.context = new AsyncLocalStorage();
}

get() {
return this.context.getStore();
}

withValue(value, fn) {
return this.context.run(value, () => fn());
}
}

const optimisticInvocation = new OptimisticInvocation;
const optimisticInvocation = new Meteor.EnvironmentVariable();

export default optimisticInvocation;

0 comments on commit 0f987d0

Please sign in to comment.