mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
Merge pull request #378 from yuanfeng0905/fix-mock
fix:NewMock return Client type
This commit is contained in:
commit
a19a6677f5
@ -13,7 +13,7 @@ type Mock struct {
|
||||
}
|
||||
|
||||
// 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))
|
||||
for k, v := range vs {
|
||||
values[k] = &Value{val: v, raw: v}
|
||||
|
Loading…
x
Reference in New Issue
Block a user