We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f47b798 commit 7d7f997Copy full SHA for 7d7f997
c.go
@@ -97,12 +97,6 @@ func WithYamlFile(path string) (CoreOption, CoreOption) {
97
// source of configuration, and watches the change of that key for hot reloading.
98
func WithRemoteYamlFile(key string, cfg clientv3.Config) (CoreOption, CoreOption) {
99
r := remote.Provider(key, &cfg)
100
- return WithRemote(r)
101
-}
102
-
103
-// WithRemote is a two-in-one coreOption. It uses the remote key on etcd as the
104
-// source of configuration, and watches the change of that key for hot reloading.
105
-func WithRemote(r *remote.Remote) (CoreOption, CoreOption) {
106
return WithConfigStack(r, config.CodecParser{Codec: yaml.Codec{}}), WithConfigWatcher(r)
107
}
108
0 commit comments