Skip to content

Commit

Permalink
syncer: Initialize strikes map
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechampine committed Dec 4, 2023
1 parent d7f8b5a commit bf4a26d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -910,13 +910,14 @@ func New(l net.Listener, cm ChainManager, pm PeerStore, header gateway.Header, o
opt(&config)
}
return &Syncer{
l: l,
cm: cm,
pm: pm,
header: header,
config: config,
log: config.Logger,
peers: make(map[string]*gateway.Peer),
synced: make(map[string]bool),
l: l,
cm: cm,
pm: pm,
header: header,
config: config,
log: config.Logger,
peers: make(map[string]*gateway.Peer),
synced: make(map[string]bool),
strikes: make(map[string]int),
}
}

0 comments on commit bf4a26d

Please sign in to comment.