Add Object.freeze on private enums

Improve code readability
This commit is contained in:
2018-07-09 10:27:12 -07:00
parent c3a63ff8b7
commit 215708014c
55 changed files with 288 additions and 327 deletions

View File

@@ -1,8 +1,7 @@
const SystemConsumerStrategies = {
const SystemConsumerStrategies = Object.freeze({
DispatchToSingle: 'DispatchToSingle',
RoundRobin: 'RoundRobin',
Pinned: 'Pinned'
};
Object.freeze(SystemConsumerStrategies);
});
module.exports = SystemConsumerStrategies;
module.exports = SystemConsumerStrategies;