Skip to content

Commit

Permalink
ARCO-105: Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Jul 22, 2024
1 parent 4fe767d commit ba6e38b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ const (
retryReadWriteMessageAttempts = 5
reconnectInterval = 10 * time.Second

pingIntervalDefault = 30 * time.Second
connectionHealthTickerDurationDefault = 1 * time.Minute
pingIntervalDefault = 2 * time.Minute
connectionHealthTickerDurationDefault = 3 * time.Minute
)

type Block struct {
Expand Down
4 changes: 1 addition & 3 deletions peer_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func (pm *PeerManager) StartMonitorPeerHealth() {
for _, peer := range pm.peers {
pm.waitGroup.Add(1)
go func(p PeerI) {
defer func() {
pm.waitGroup.Done()
}()
defer pm.waitGroup.Done()
for {
select {
case <-pm.ctx.Done():
Expand Down

0 comments on commit ba6e38b

Please sign in to comment.