Skip to content

Commit 67dd6d6

Browse files
committed
Forgotten file for f4407a1.
1 parent f4407a1 commit 67dd6d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

go/cmd/doorman/doorman_server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import (
3333

3434
"github.com/youtube/doorman/go/configuration"
3535
"github.com/youtube/doorman/go/connection"
36+
"github.com/youtube/doorman/go/flagenv"
3637
"github.com/youtube/doorman/go/server/doorman"
3738
"github.com/youtube/doorman/go/server/election"
3839
"github.com/youtube/doorman/go/status"
@@ -136,6 +137,9 @@ func getServerID(port int) string {
136137

137138
func main() {
138139
flag.Parse()
140+
if err := flagenv.Populate(flag.CommandLine, "DOORMAN"); err != nil {
141+
log.Exit(err)
142+
}
139143

140144
if *config == "" {
141145
log.Exit("--config cannot be empty")

0 commit comments

Comments
 (0)