Skip to content

Commit

Permalink
(FIX)(storages): remove nextTick in favor of setImmediate (rt2zz#310) (
Browse files Browse the repository at this point in the history
  • Loading branch information
rt2zz authored Mar 30, 2017
1 parent 4f5c30e commit 46fa300
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion constants.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
module.exports = require('./lib/constants')

4 changes: 1 addition & 3 deletions src/defaults/asyncLocalStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ export default function (type, config) {
for (var i = 0; i < storage.length; i++) {
keys.push(storage.key(i))
}


(() => {
localSetImmediate(() => {
cb && cb(null, keys)
resolve(keys)
})
Expand Down

0 comments on commit 46fa300

Please sign in to comment.