Skip to content

Commit

Permalink
add check GoingAway err check
Browse files Browse the repository at this point in the history
  • Loading branch information
secmask committed Jun 27, 2024
1 parent a4837d5 commit 3fdd9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/listener/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func (l *Listener) syncBlocks(ctx context.Context, blockCh chan types.Block) err

l.l.Errorw("Error occur while sync blocks", "error", err)
if !websocket.IsCloseError(err, websocket.CloseAbnormalClosure,
websocket.CloseNormalClosure, websocket.CloseServiceRestart) &&
websocket.CloseNormalClosure, websocket.CloseServiceRestart, websocket.CloseGoingAway) &&
!errors.Is(err, syscall.ECONNRESET) &&
!errors.Is(err, ethereum.NotFound) &&
err.Error() != errStringUnknownBlock &&
Expand Down

0 comments on commit 3fdd9e6

Please sign in to comment.