Skip to content

Commit

Permalink
Fix test example: asunc start function
Browse files Browse the repository at this point in the history
PR-URL: #1725
  • Loading branch information
tshemsedinov committed Mar 20, 2022
1 parent 1ffab0e commit 628e015
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions test/cache/example/start.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
({
privateField: 100,

async method() {
if (application.worker.id === 'W1') {
console.debug('Start example plugin');
this.parent.cache.set({ key: 'keyName', val: this.privateField });
const res = lib.example.cache.get({ key: 'keyName' });
console.debug({ res, cache: this.parent.cache.values });
}
},
});
async () => {
if (application.worker.id === 'W1') {
console.debug('Start example plugin');
this.parent.cache.set({ key: 'keyName', val: 'value' });
const res = lib.example.cache.get({ key: 'keyName' });
console.debug({ res, cache: this.parent.cache.values });
}
};

0 comments on commit 628e015

Please sign in to comment.