feat: optimize server code (#1931) #2109
Annotations
10 errors
golangci-lint:
internal/api/msg.go#L318
shadow: declaration of "err" shadows declaration at line 313 (govet)
|
golangci-lint:
internal/msggateway/client.go#L80
func `newClient` is unused (unused)
|
golangci-lint:
internal/msggateway/long_conn.go#L111
S1008: should use 'return d.conn == nil' instead of 'if d.conn != nil { return false }; return true' (gosimple)
|
golangci-lint:
internal/msggateway/n_ws_server.go#L64
var `bufferPool` is unused (unused)
|
golangci-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)
|
golangci-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)
|
golangci-lint:
internal/msgtransfer/init.go#L74
shadow: declaration of "err" shadows declaration at line 56 (govet)
|
golangci-lint:
internal/msgtransfer/online_history_msg_handler.go#L77
field `singleMsgSuccessCount` is unused (unused)
|
golangci-lint:
internal/msgtransfer/online_history_msg_handler.go#L78
field `singleMsgFailedCount` is unused (unused)
|
golangci-lint:
internal/msgtransfer/online_history_msg_handler.go#L79
field `singleMsgSuccessCountMutex` is unused (unused)
|
The logs for this run have expired and are no longer available.
Loading