1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-19 21:18:07 +02:00

Merge pull request #378 from yuanfeng0905/fix-mock

fix:NewMock return Client type
This commit is contained in:
Terry.Mao 2019-10-12 16:21:23 +08:00 committed by GitHub
commit a19a6677f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ type Mock struct {
} }
// NewMock new a config mock client. // NewMock new a config mock client.
func NewMock(vs map[string]string) *Mock { func NewMock(vs map[string]string) Client {
values := make(map[string]*Value, len(vs)) values := make(map[string]*Value, len(vs))
for k, v := range vs { for k, v := range vs {
values[k] = &Value{val: v, raw: v} values[k] = &Value{val: v, raw: v}