Skip to content

Commit

Permalink
Fix struct tag in apparently untested config struct
Browse files Browse the repository at this point in the history
  • Loading branch information
lavalamp committed Oct 7, 2014
1 parent 2d048bc commit 2dde76b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/proxy/config/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ import (
)

// serviceConfig is a deserialized form of the config file format which ConfigSourceFile accepts.
// TODO: this is apparently untested; is it used?
type serviceConfig struct {
Services []struct {
Name string `json: "name"`
Port int `json: "port"`
Endpoints []string `json: "endpoints"`
} `json: "service"`
} `json:"service"`
}

// ConfigSourceFile periodically reads service configurations in JSON from a file, and sends the services and endpoints defined in the file to the specified channels.
Expand Down

0 comments on commit 2dde76b

Please sign in to comment.