Skip to content

Commit

Permalink
Fix/evm 719 (#1683)
Browse files Browse the repository at this point in the history
* fix for EVM-719

* fix for EVM-719(without taking a lock for syncPeers)

* fixed linting error
  • Loading branch information
rachit77 committed Jun 30, 2023
1 parent beeb461 commit b45a404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions syncer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ func (m *syncPeerClient) GetConnectedPeerStatuses() []*NoForkPeer {
status, err := m.GetPeerStatus(peerID)
if err != nil {
m.logger.Warn("failed to get status from a peer, skip", "id", peerID, "err", err)

return //Skip appending nil status
}

syncPeersLock.Lock()
Expand Down

0 comments on commit b45a404

Please sign in to comment.