From 2dde76bd03ecadf2b3709df0a45d009558723bed Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Tue, 7 Oct 2014 14:01:45 -0700 Subject: [PATCH] Fix struct tag in apparently untested config struct --- pkg/proxy/config/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/proxy/config/file.go b/pkg/proxy/config/file.go index 6a90ce0a4aa..259bc3b46e2 100644 --- a/pkg/proxy/config/file.go +++ b/pkg/proxy/config/file.go @@ -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.