Skip to content

Commit 7d7f997

Browse files
committed
fix(core): remove WithRemote
BREAKING CHANGE: WithRemote option removed.
1 parent f47b798 commit 7d7f997

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

c.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ func WithYamlFile(path string) (CoreOption, CoreOption) {
9797
// source of configuration, and watches the change of that key for hot reloading.
9898
func WithRemoteYamlFile(key string, cfg clientv3.Config) (CoreOption, CoreOption) {
9999
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) {
106100
return WithConfigStack(r, config.CodecParser{Codec: yaml.Codec{}}), WithConfigWatcher(r)
107101
}
108102

0 commit comments

Comments
 (0)