mirror of
https://github.com/go-kratos/kratos.git
synced 2026-05-22 10:15:24 +02:00
+5
-4
@@ -57,10 +57,11 @@ linters-settings:
|
|||||||
lll:
|
lll:
|
||||||
line-length: 160
|
line-length: 160
|
||||||
gomnd:
|
gomnd:
|
||||||
settings:
|
# don't include the "operation", "argument" and "assign"
|
||||||
mnd:
|
checks:
|
||||||
# don't include the "operation", "argument" and "assign"
|
- case
|
||||||
checks: case,condition,return
|
- condition
|
||||||
|
- return
|
||||||
goconst:
|
goconst:
|
||||||
ignore-tests: true
|
ignore-tests: true
|
||||||
gocyclo:
|
gocyclo:
|
||||||
|
|||||||
@@ -21,9 +21,7 @@ type customChangeListener struct {
|
|||||||
logger log.Logger
|
logger log.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *customChangeListener) onChange(
|
func (c *customChangeListener) onChange(namespace string, changes map[string]*storage.ConfigChange) []*config.KeyValue {
|
||||||
namespace string, changes map[string]*storage.ConfigChange,
|
|
||||||
) []*config.KeyValue {
|
|
||||||
kv := make([]*config.KeyValue, 0, 2)
|
kv := make([]*config.KeyValue, 0, 2)
|
||||||
next := make(map[string]interface{})
|
next := make(map[string]interface{})
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
./contrib/config/apollo
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user