Skip to content

Commit

Permalink
MODE=all added
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Jun 13, 2024
1 parent d68d1ba commit d674a59
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,7 @@ module.exports.metricType = boolEnv('DISTINGUISH_LOGS_METRICS') ? 2 : 0

module.exports.bothType = 0

module.exports.writerMode = (process.env.MODE === 'writer' || !process.env.MODE) && !boolEnv('READONLY')
module.exports.readerMode = process.env.MODE === 'reader' || boolEnv('READONLY') || !process.env.MODE
module.exports.writerMode = (process.env.MODE === 'writer' || !process.env.MODE || process.env.MODE === 'all') &&
!boolEnv('READONLY')
module.exports.readerMode = process.env.MODE === 'reader' || process.env.MODE === 'all' || boolEnv('READONLY') ||
!process.env.MODE

0 comments on commit d674a59

Please sign in to comment.