refactor peer health monitor #19
static-analysis.yml
on: pull_request
Static check
37s
Golangci-lint
38s
Annotations
9 errors and 2 warnings
Static check:
peer_manager_test.go#L82
cannot use peer (variable of type *PeerMock) as PeerI value in argument to pm.AddPeer: *PeerMock does not implement PeerI (missing method IsUnhealthyCh)
|
Static check:
peer_manager_test.go#L106
cannot use peers[i] (variable of type *PeerMock) as PeerI value in argument to pm.AddPeer: *PeerMock does not implement PeerI (missing method IsUnhealthyCh) (compile)
|
Static check:
peer.go#L855
func (*Peer).stopReadHandler is unused (U1000)
|
Static check:
peer.go#L865
func (*Peer).stopWriteHandler is unused (U1000)
|
Static check
Process completed with exit code 1.
|
Golangci-lint:
block_message.go#L1
: # github.com/libsv/go-p2p [github.com/libsv/go-p2p.test]
|
Golangci-lint:
peer_manager_test.go#L82
cannot use peer (variable of type *PeerMock) as PeerI value in argument to pm.AddPeer: *PeerMock does not implement PeerI (missing method IsUnhealthyCh)
|
Golangci-lint:
peer_manager_test.go#L106
cannot use peers[i] (variable of type *PeerMock) as PeerI value in argument to pm.AddPeer: *PeerMock does not implement PeerI (missing method IsUnhealthyCh) (typecheck)
|
Golangci-lint
issues found
|
Static check
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Golangci-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|