Skip to content

Commit

Permalink
Fix client to not report failed operations
Browse files Browse the repository at this point in the history
  • Loading branch information
aminst committed Feb 19, 2024
1 parent b507520 commit e1cf0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,16 @@ func (c *client) GetResponsesForever(ctx context.Context, readResponseChannel ch
log.Error().Msgf(readResponse.err.Error())
} else {
log.Debug().Msgf("Sucess in Read of block %s. Got value: %v\n", readResponse.block, readResponse.value)
readOperations++
}
readOperations++
case writeResponse := <-writeResponseChannel:
if writeResponse.err != nil {
fmt.Println(writeResponse.err.Error())
log.Error().Msgf(writeResponse.err.Error())
} else {
log.Debug().Msgf("Finished writing block %s. Success: %v\n", writeResponse.block, writeResponse.success)
writeOperations++
}
writeOperations++
default:
}
}
Expand Down

0 comments on commit e1cf0bb

Please sign in to comment.