diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-25 19:50:52 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-07-25 19:50:52 +0200 |
| commit | 9657f640e5dab17d6c2c6cd838a26c741768bebb (patch) | |
| tree | 0a010c1e18d1adaca66497ab8b2a2c669d7f4a37 | |
| parent | 878b06f38bb614cd35953fa368a2e42aafa17e9e (diff) | |
| download | processor-9657f640e5dab17d6c2c6cd838a26c741768bebb.tar.gz processor-9657f640e5dab17d6c2c6cd838a26c741768bebb.zip | |
nvm the last 2 commits
| -rw-r--r-- | worker.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -221,10 +221,6 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { players: player_data.size, matches: match_data.size }); - if (msgs.size == 0) { - logger.info("nothing to do"); - return; - } // clean up to allow processor to accept while we wait for db clearTimeout(idle_timer); @@ -232,6 +228,10 @@ amqp.connect(RABBITMQ_URI).then(async (rabbit) => { idle_timer = undefined; load_timer = undefined; + if (msgs.size == 0) { + logger.info("nothing to do"); + return; + } const player_objects = new Set(player_data), match_objects = new Set(match_data); player_data.clear(); |
