diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c26c42..72eb9904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# developing +- [https://github.com/beego/beego/pull/4845](https://github.com/beego/beego/pull/4845) # v2.0.2-beta.1 - Add a custom option for whether to escape HTML special characters when processing http request parameters. [4701](https://github.com/beego/beego/pull/4701) diff --git a/core/config/etcd/config.go b/core/config/etcd/config.go index fb12b065..e0e30b44 100644 --- a/core/config/etcd/config.go +++ b/core/config/etcd/config.go @@ -46,7 +46,7 @@ func newEtcdConfiger(client *clientv3.Client, prefix string) *EtcdConfiger { return res } -// reader is an general implementation that read config from etcd. +// reader is a general implementation that read config from etcd. func (e *EtcdConfiger) reader(ctx context.Context, key string) (string, error) { resp, err := get(e.client, e.prefix+key) if err != nil { @@ -188,5 +188,5 @@ func get(client *clientv3.Client, key string) (*clientv3.GetResponse, error) { } func init() { - config.Register("json", &EtcdConfigerProvider{}) + config.Register("etcd", &EtcdConfigerProvider{}) }