Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
86f68cf0
Commit
86f68cf0
authored
Sep 27, 2018
by
Janos Guljas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/swarm: fail on SWARM_ENV_MAX_STREAM_PEER_SERVERS parsing error
parent
a5e6bf7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
config.go
cmd/swarm/config.go
+4
-2
No files found.
cmd/swarm/config.go
View file @
86f68cf0
...
...
@@ -313,9 +313,11 @@ func envVarsOverride(currentConfig *bzzapi.Config) (config *bzzapi.Config) {
}
if
max
:=
os
.
Getenv
(
SWARM_ENV_MAX_STREAM_PEER_SERVERS
);
max
!=
""
{
if
m
,
err
:=
strconv
.
Atoi
(
max
);
err
==
nil
{
currentConfig
.
MaxStreamPeerServers
=
m
m
,
err
:=
strconv
.
Atoi
(
max
)
if
err
!=
nil
{
utils
.
Fatalf
(
"invalid environment variable %s: %v"
,
SWARM_ENV_MAX_STREAM_PEER_SERVERS
,
err
)
}
currentConfig
.
MaxStreamPeerServers
=
m
}
if
lne
:=
os
.
Getenv
(
SWARM_ENV_LIGHT_NODE_ENABLE
);
lne
!=
""
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment