Update proto Service => Config

This commit is contained in:
Asim Aslam
2020-01-23 11:37:54 +00:00
parent 6d636b7ab3
commit 1c19678d04
5 changed files with 117 additions and 114 deletions

View File

@@ -21,7 +21,7 @@ type service struct {
key string
path string
opts source.Options
client proto.Service
client proto.ConfigService
}
func (m *service) Read() (set *source.ChangeSet, err error) {
@@ -83,7 +83,7 @@ func NewSource(opts ...source.Option) source.Source {
opts: options,
key: key,
path: path,
client: proto.NewService(addr, DefaultClient),
client: proto.NewConfigService(addr, DefaultClient),
}
return s