Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: constify all the things
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnygleason committed Jun 27, 2019
1 parent c231b81 commit be99beb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ txnsClient.on('message', handleTxnRedis('txns-by-prgid'));
const globalInfoPublish = handleRedis('global-info');

async function updateGlobalInfoTimerTask() {
let globalInfo = await getGlobalInfo();
const globalInfo = await getGlobalInfo();
globalInfoPublish('global-info', JSON.stringify(globalInfo));
}

Expand All @@ -147,7 +147,7 @@ setInterval(updateGlobalInfoTimerTask, GLOBAL_STATS_BROADCAST_INTERVAL_MS);
const clusterInfoPublish = handleRedis('cluster-info');

async function updateClusterInfoTimerTask() {
let clusterInfo = await getClusterInfo();
const clusterInfo = await getClusterInfo();
clusterInfoPublish('cluster-info', JSON.stringify(clusterInfo));
}

Expand Down Expand Up @@ -258,13 +258,13 @@ async function getGlobalInfo() {
`!ent-last-id`,
];

let stat_values = await mgetAsync(stat_keys);
const stat_values = await mgetAsync(stat_keys);

return _.zipObject(stat_keys, stat_values);
}

async function sendGlobalInfoResponse(res) {
let globalInfo = await getGlobalInfo();
const globalInfo = await getGlobalInfo();
res.send(JSON.stringify(globalInfo) + '\n');
}

Expand Down

0 comments on commit be99beb

Please sign in to comment.