Skip to content

Commit

Permalink
fix log message when fetching imps/events/uks fails
Browse files Browse the repository at this point in the history
  • Loading branch information
mredolatti committed Jul 14, 2023
1 parent cf92e16 commit c585ee5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion splitio/commitversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ This file is created automatically, please do not edit
*/

// CommitVersion is the version of the last commit previous to release
const CommitVersion = "5d527e7"
const CommitVersion = "cf92e16"
9 changes: 4 additions & 5 deletions splitio/producer/task/pipelined.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ func (p *PipelinedSyncTask) filler() {
for p.running.IsSet() {
timer.Reset(1 * time.Second)
raw, err := p.worker.Fetch()
if err != nil {
p.logger.Error(fmt.Sprintf("[pipelined/%s] fetch function returned error: %s", p.name, err))
}

if len(raw) == 0 {
select {
case <-timer.C:
Expand All @@ -174,11 +178,6 @@ func (p *PipelinedSyncTask) filler() {
return
}
}
if err != nil {
p.logger.Error(fmt.Sprintf("[pipelined/%s] fetch function returned error: %s", p.name, err))
continue
}

howMany := len(raw)
select {
case p.inputBuffer <- raw:
Expand Down

0 comments on commit c585ee5

Please sign in to comment.