Skip to content

Commit

Permalink
replace - with _ in envvar (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
  • Loading branch information
fkautz authored Sep 6, 2020
1 parent 8067acf commit 0a203f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ func main() {

// Get config from environment
config := &Config{}
if err := envconfig.Usage("registry-memory", config); err != nil {
if err := envconfig.Usage("registry_memory", config); err != nil {
logrus.Fatal(err)
}
if err := envconfig.Process("registry-memory", config); err != nil {
if err := envconfig.Process("registry_memory", config); err != nil {
logrus.Fatalf("error processing config from env: %+v", err)
}

Expand Down

0 comments on commit 0a203f2

Please sign in to comment.