Skip to content

refactor: gin prometheus for api (#1371) #1106

refactor: gin prometheus for api (#1371)

refactor: gin prometheus for api (#1371) #1106

Triggered via push November 13, 2023 05:04
Status Failure
Total duration 3m 19s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: internal/api/msg.go#L292
shadow: declaration of "err" shadows declaration at line 287 (govet)
lint: internal/msggateway/client.go#L79
func `newClient` is unused (unused)
lint: internal/msggateway/hub_server.go#L153
S1002: should omit comparison to bool constant, can be simplified to `client.IsBackground` (gosimple)
lint: internal/msggateway/long_conn.go#L106
S1008: should use 'return d.conn == nil' instead of 'if d.conn != nil { return false }; return true' (gosimple)
lint: internal/msggateway/n_ws_server.go#L64
var `bufferPool` is unused (unused)
lint: internal/msggateway/n_ws_server.go#L81
field `hubServer` is unused (unused)
lint: internal/msggateway/n_ws_server.go#L368
copylocks: call of log.ZInfo copies lock value: sync/atomic.Int64 contains sync/atomic.noCopy (govet)
lint: internal/msggateway/n_ws_server.go#L407
shadow: declaration of "err" shadows declaration at line 402 (govet)
lint: internal/msggateway/user_map.go#L61
copylocks: call of log.ZDebug copies lock value: github.com/openimsdk/open-im-server/v3/internal/msggateway.Client contains sync/atomic.Bool contains sync/atomic.noCopy (govet)
lint: internal/msggateway/user_map.go#L66
copylocks: call of log.ZDebug copies lock value: github.com/openimsdk/open-im-server/v3/internal/msggateway.Client contains sync/atomic.Bool contains sync/atomic.noCopy (govet)