rename stuff per feedback

This commit is contained in:
magodo
2019-06-25 22:41:31 +08:00
parent 8e4fd16aff
commit a8dbca756c
2 changed files with 5 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ func NewSource(opts ...source.Option) source.Source {
config := api.DefaultConfig()
// use the consul config passed in the options if any
if co, ok := options.Context.Value(consulConfigKey{}).(*api.Config); ok {
if co, ok := options.Context.Value(configKey{}).(*api.Config); ok {
config = co
}