Skip to content

Commit

Permalink
Rename variable for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
hsoerensen committed Aug 1, 2024
1 parent 87c08f7 commit 58c2938
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/start-node/start-node.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func main() {
pu := utils.ProcessUtils{}
var done <-chan error

envVar := os.Getenv(envCatchupVar)
if profile == "archiver" && envVar != "0" {
envCatchup := os.Getenv(envCatchupVar)
if profile == "archiver" && envCatchup != "0" {
predefinedNetwork, err := nu.NewNetwork(network)
if err != nil {
log.Fatalf("Error: %v", err)
Expand All @@ -72,7 +72,7 @@ func main() {

done = pu.StartProcess(algodCmd, "-d", algodDataDir)

if envVar != "0" && !urlSet && profile != "archiver" {
if envCatchup != "0" && !urlSet && profile != "archiver" {
retryCount := 0
maxRetries := 10
for retryCount < maxRetries {
Expand Down

0 comments on commit 58c2938

Please sign in to comment.