Skip to content

Commit

Permalink
fix: invoke reconnect when readInternal return error
Browse files Browse the repository at this point in the history
  • Loading branch information
itgram committed Oct 22, 2024
1 parent 8206ac8 commit a77b25e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion esdb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,9 @@ func readInternal(
result, err := streamsClient.Read(ctx, readRequest, callOptions...)
if err != nil {
defer cancel()
return nil, err

err = client.grpcClient.handleError(handle, headers, trailers, err)
return nil, fmt.Errorf("could not construct read operation. Reason: %w", err)
}

params := readStreamParams{
Expand Down

0 comments on commit a77b25e

Please sign in to comment.