1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-30 10:10:44 +02:00

[fix] etcd config source prefix issue (#2389)

This commit is contained in:
Johnson C 2021-12-17 11:43:55 +08:00 committed by GitHub
parent d9a6faeb7a
commit 21bac54ad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ func (c *etcd) Read() (*source.ChangeSet, error) {
return nil, c.cerr return nil, c.cerr
} }
rsp, err := c.client.Get(context.Background(), c.prefix, clientv3.WithPrefix()) rsp, err := c.client.Get(context.Background(), c.prefix)
if err != nil { if err != nil {
return nil, err return nil, err
} }