Created
September 22, 2017 12:26
-
-
Save odyss009/cddd35d63451c6339efbf6b904214ab3 to your computer and use it in GitHub Desktop.
Revisions
-
odyss009 created this gist
Sep 22, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ //indent rule return Promise.all(keys.map(key => scan(key))) .then(result => [].concat(...result)) .then(expireKeys.bind(null, client)); //beauiful return Promise.all(keys.map(key => scan(key))) .then(result => [].concat(...result)) .then(expireKeys.bind(null, client));