Skip to content

Commit

Permalink
Remove useless config elements
Browse files Browse the repository at this point in the history
Issue : BB-520
  • Loading branch information
benzekrimaha committed Oct 10, 2024
1 parent a1c64a4 commit b8bd575
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
8 changes: 0 additions & 8 deletions conf/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,6 @@
"host": "127.0.0.1",
"port": 8900
},
"healthcheckServer": {
"bindAddress": "0.0.0.0",
"port": 4042
},
"localCache": {
"host": "127.0.0.1",
"port": 6379
},
"redis": {
"host": "localhost",
"port": 6379
Expand Down
8 changes: 0 additions & 8 deletions lib/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,6 @@ class Config extends EventEmitter {
{ host: '127.0.0.1', port: 6379 });
}

if (parsedConfig.localCache) {
this.localCache = {
host: config.localCache.host,
port: config.localCache.port,
password: config.localCache.password,
};
}

// additional certs checks
if (parsedConfig.certFilePaths) {
parsedConfig.https = this._parseCertFilePaths(
Expand Down
10 changes: 0 additions & 10 deletions lib/config.joi.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const joiSchema = joi.object({
zookeeperPath: joi.string().required(),

logSource: joi.alternatives().try(logSourcesJoi).required(),
subscribeToLogSourceDispatcher: joi.boolean().default(false),
bucketd: hostPortJoi
.keys({ transport: transportJoi })
.when('logSource', { is: 'bucketd', then: joi.required() }),
Expand Down Expand Up @@ -88,15 +87,6 @@ const joiSchema = joi.object({
),
sentinelPassword: joi.string().default('').allow(''),
},
localCache: {
host: joi.string().default('localhost'),
port: joi.number().default(6379),
password: joi.string(),
},
healthcheckServer: joi.object({
bindAddress: joi.string().default('127.0.0.1'),
port: joi.number().default(4042),
}).required(),
certFilePaths: certFilePathsJoi,
internalCertFilePaths: certFilePathsJoi,
});
Expand Down

0 comments on commit b8bd575

Please sign in to comment.