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:
|
||||
line-length: 160
|
||||
gomnd:
|
||||
settings:
|
||||
mnd:
|
||||
# don't include the "operation", "argument" and "assign"
|
||||
checks: case,condition,return
|
||||
# don't include the "operation", "argument" and "assign"
|
||||
checks:
|
||||
- case
|
||||
- condition
|
||||
- return
|
||||
goconst:
|
||||
ignore-tests: true
|
||||
gocyclo:
|
||||
|
||||
@@ -21,9 +21,7 @@ type customChangeListener struct {
|
||||
logger log.Logger
|
||||
}
|
||||
|
||||
func (c *customChangeListener) onChange(
|
||||
namespace string, changes map[string]*storage.ConfigChange,
|
||||
) []*config.KeyValue {
|
||||
func (c *customChangeListener) onChange(namespace string, changes map[string]*storage.ConfigChange) []*config.KeyValue {
|
||||
kv := make([]*config.KeyValue, 0, 2)
|
||||
next := make(map[string]interface{})
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
./contrib/config/apollo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user