From 6bc1feb752bb53823055b2ff58c677bee59a458e Mon Sep 17 00:00:00 2001 From: Arthur Date: Sat, 12 Oct 2019 15:48:36 +0800 Subject: [PATCH] fix:NewMock return Client type --- pkg/conf/paladin/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/conf/paladin/mock.go b/pkg/conf/paladin/mock.go index 1792d95bd..4e705c1de 100644 --- a/pkg/conf/paladin/mock.go +++ b/pkg/conf/paladin/mock.go @@ -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}