Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
infiloop2 committed Feb 19, 2024
1 parent 8e7e3fb commit 496e0e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var CalculateRetryConfigFn = func(prk string, mercuryConfig MercuryConfigProvide

type MercuryData struct {
Index int
Bytes [][]byte // Mercury values is request is successful
Bytes [][]byte // Mercury values if request is successful
ErrCode encoding.ErrCode // Error code if mercury gives an error
State encoding.PipelineExecutionState // NoPipelineError if no error during execution, otherwise appropriate error
Retryable bool // Applicable if State != NoPipelineError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ func (c *client) DoRequest(ctx context.Context, streamsLookup *mercury.StreamsLo

// in v0.2, when combining results for multiple feed requests
// if any request resulted in pipeline execution error then use the last execution error as the state
// if no execution errors, then check if any feed returned an error code
// When combining multiple results,
// if no execution errors, then check if any feed returned an error code, if so use the last error code
for i := 0; i < resultLen; i++ {
m := <-ch
if m.Error != nil {
Expand Down

0 comments on commit 496e0e9

Please sign in to comment.