Skip to content

Commit

Permalink
fix: ensure peers is not nil (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <wolf31o2@blinklabs.io>
  • Loading branch information
wolf31o2 authored Dec 18, 2024
1 parent 809cce8 commit 6588869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peergov/peergov.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (p *PeerGovernor) LoadTopologyConfig(
p.mu.Lock()
defer p.mu.Unlock()
// Remove peers originally sourced from the topology
var tmpPeers []*Peer
tmpPeers := []*Peer{}
for _, tmpPeer := range p.peers {
if tmpPeer.Source == PeerSourceTopologyBootstrapPeer ||
tmpPeer.Source == PeerSourceTopologyLocalRoot ||
Expand Down

0 comments on commit 6588869

Please sign in to comment.