From 3fdd9e681dfcf0caa6de2a83380ca9779fc1e756 Mon Sep 17 00:00:00 2001 From: GiangTran Date: Thu, 27 Jun 2024 09:28:49 +0700 Subject: [PATCH] add check GoingAway err check --- pkg/listener/listener.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/listener/listener.go b/pkg/listener/listener.go index 7d80dd9..2d3114d 100644 --- a/pkg/listener/listener.go +++ b/pkg/listener/listener.go @@ -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 &&