Skip to content

Commit

Permalink
fix init after setSetting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankChung authored and skaurus committed Jul 26, 2022
1 parent 1231162 commit 2900e15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions goworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ type WorkerSettings struct {
}

func SetSettings(settings WorkerSettings) {
// force the flags to be parsed first before setting the configs.
Init()
workerSettings = settings
}

Expand Down

0 comments on commit 2900e15

Please sign in to comment.