Skip to content

Commit

Permalink
Fix 'client already started' error on finding common ancestor
Browse files Browse the repository at this point in the history
  • Loading branch information
cffls committed Nov 6, 2024
1 parent 136bb86 commit 73be5bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zk/datastream/client/stream_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (c *StreamClient) GetL2BlockByNumber(blockNum uint64) (fullBLock *types.Ful
if fullBLock, err = c.getL2BlockByNumber(blockNum); err == nil {
break
}
if !errors.Is(err, ErrSocket) {
if !errors.Is(err, ErrSocket) || !errors.Is(err, types.ErrAlreadyStarted) {
return nil, fmt.Errorf("getL2BlockByNumber: %w", err)
}

Expand Down

0 comments on commit 73be5bd

Please sign in to comment.