Skip to content

fix:修复LoadBalance无法选择处于半开的实例 (#196) #263

fix:修复LoadBalance无法选择处于半开的实例 (#196)

fix:修复LoadBalance无法选择处于半开的实例 (#196) #263

Triggered via push December 27, 2023 04:27
Status Success
Total duration 45s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

revive.yml

on: push
Matrix: Run Revive Action
Fit to window
Zoom out
Zoom in

Annotations

60 warnings
Run Revive Action (1.17.x): pkg/metric/bucket.go#L18
should have a package comment
Run Revive Action (1.17.x): examples/route/nearby/provider/main.go#L18
should have a package comment
Run Revive Action (1.17.x): benchmark/benchsimple/main.go#L181
struct field maxQps should be maxQPS
Run Revive Action (1.17.x): benchmark/benchsimple/main.go#L71
var maxQps should be maxQPS
Run Revive Action (1.17.x): benchmark/benchsimple/main.go#L239
func runQpsLimitFeature should be runQPSLimitFeature
Run Revive Action (1.17.x): benchmark/benchsimple/main.go#L414
var useQpsLimit should be useQPSLimit
Run Revive Action (1.17.x): api_config.go#L116
comment on exported function NewConfigGroupAPIByConfig should be of the form "NewConfigGroupAPIByConfig ..."
Run Revive Action (1.17.x): api.go#L134
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.17.x): benchmark/benchsimple/main.go#L18
should have a package comment
Run Revive Action (1.17.x): api_config.go#L127
comment on exported function NewConfigGroupAPIByFile should be of the form "NewConfigGroupAPIByFile ..."
Run Revive Action (1.19.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/register/plugins.go#L18
should have a package comment
Run Revive Action (1.19.x): pkg/plugin/serverconnector/proxy.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.19.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/service/longpull/main.go#L52
should omit type uint64 from declaration of var index; it will be inferred from the right-hand side
Run Revive Action (1.20.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/route/dynamic/consumer/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/instance/notify/main.go#L76
exported type TestListener should have comment or be unexported
Run Revive Action (1.20.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.20.x): examples/watch/service/longpull/main.go#L77
should omit type uint64 from declaration of var index; it will be inferred from the right-hand side
Run Revive Action (1.20.x): plugin/servicerouter/zeroprotect/zeroprotect.go#L34
exported const MetadataInstanceLastHeartbeatTime should have comment (or a comment on this block) or be unexported
Run Revive Action (1.16.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/plugin/serverconnector/proxy.go#L18
should have a package comment
Run Revive Action (1.16.x): api/log.go#L27
a blank import should be only in a main or test package, or have a comment justifying it
Run Revive Action (1.16.x): pkg/plugin/register/plugins.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/stat/plugin/plug.go#L18
should have a package comment
Run Revive Action (1.16.x): pkg/stat/loadbalance/lb.go#L18
should have a package comment
Run Revive Action (1.16.x): plugin/metrics/common/strategy.go#L107
parameter 'dataSource' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): plugin/metrics/common/collector.go#L17
should have a package comment
Run Revive Action (1.16.x): plugin/configfilter/crypto/crypto.go#L99
parameter 'configFile' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.16.x): plugin/metrics/common/model.go#L87
should omit type map[string]LabelValueSupplier from declaration of var InstanceGaugeLabelOrder; it will be inferred from the right-hand side
Run Revive Action (1.15.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/route/nearby/provider/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/plugin/configfilter/configfilter.go#L19
should have a package comment
Run Revive Action (1.15.x): examples/configuration/fallback/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/configuration/normal/main.go#L18
should have a package comment
Run Revive Action (1.15.x): pkg/algorithm/rand/scalable_rand_test.go#L51
parameter 't' seems to be unused, consider removing or renaming it as _
Run Revive Action (1.15.x): examples/ratelimit/provider/main.go#L18
should have a package comment
Run Revive Action (1.15.x): examples/route/nearby/consumer/main.go#L18
should have a package comment
Run Revive Action (1.15.x): api.go#L134
exported type GetConfigFileRequest should have comment or be unexported
Run Revive Action (1.18.x): examples/configuration/crud/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/configuration/encrypt/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/quickstart/provider/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/activehealthcheck/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/configuration/group/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watchinstance/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/ratelimit/consumer/main.go#L18
should have a package comment
Run Revive Action (1.18.x): examples/watch/service/notify/main.go#L18
should have a package comment
Run Revive Action (1.18.x): pkg/algorithm/match/match.go#L18
should have a package comment
Run Revive Action (1.18.x): pkg/algorithm/hash/base.go#L32
type name will be used as hash.HashFuncWithSeed by other packages, and that stutters; consider calling this FuncWithSeed