Skip to content

Commit

Permalink
Merge pull request #784 from oceanprotocol/issue-783-fix-env
Browse files Browse the repository at this point in the history
fix usage of getBoolEnvValue
  • Loading branch information
paulo-ocean authored Dec 6, 2024
2 parents f822742 + 13b4add commit 2de7c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ async function getEnvConfig(isStartup?: boolean): Promise<OceanNodeConfig> {
),
dhtMaxInboundStreams: getIntEnvValue(process.env.P2P_dhtMaxInboundStreams, 500),
dhtMaxOutboundStreams: getIntEnvValue(process.env.P2P_dhtMaxOutboundStreams, 500),
enableDHTServer: getBoolEnvValue(process.env.P2P_ENABLE_DHT_SERVER, false),
enableDHTServer: getBoolEnvValue('P2P_ENABLE_DHT_SERVER', false),
mDNSInterval: getIntEnvValue(process.env.P2P_mDNSInterval, 20e3), // 20 seconds
connectionsMaxParallelDials: getIntEnvValue(
process.env.P2P_connectionsMaxParallelDials,
Expand Down Expand Up @@ -617,7 +617,7 @@ async function getEnvConfig(isStartup?: boolean): Promise<OceanNodeConfig> {
isStartup,
knownUnsafeURLs
),
isBootstrap: getBoolEnvValue(process.env.IS_BOOTSTRAP, false)
isBootstrap: getBoolEnvValue('IS_BOOTSTRAP', false)
}

if (!previousConfiguration) {
Expand Down

0 comments on commit 2de7c25

Please sign in to comment.