Skip to content

refactor peer health monitor #19

refactor peer health monitor

refactor peer health monitor #19

Triggered via pull request June 18, 2024 13:29
Status Failure
Total duration 51s
Artifacts

static-analysis.yml

on: pull_request
Static check
37s
Static check
Golangci-lint
38s
Golangci-lint
Fit to window
Zoom out
Zoom in

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/.