Update config.go
This commit is contained in:
parent
2d92ce8490
commit
c3eb8df10b
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ func LoadConfig(path string) (*Config, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// Переопределения через ENV (пример)
|
||||
|
||||
if e := os.Getenv("INDEXER_POLL_INTERVAL"); e != "" {
|
||||
if val, err := strconv.Atoi(e); err == nil {
|
||||
c.PollIntervalSeconds = val
|
||||
|
|
Loading…
Add table
Reference in a new issue