Skip to content

Commit

Permalink
change: lowercase error/msgf
Browse files Browse the repository at this point in the history
  • Loading branch information
salimnassim committed Jul 31, 2024
1 parent 6f4708b commit 269bfb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/openSearch/openSearchClient/updateQueue.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (q *UpdateQueue) Update(indexName string, requestBody []byte) ([]byte, erro

if _, ok := responseMap["failures"]; ok {
if len(responseMap["failures"].([]interface{})) > 0 {
return response.Body, fmt.Errorf("Update failed - even after retries: %s", string(response.Body))
return response.Body, fmt.Errorf("update failed - even after retries: %s", string(response.Body))
}
}

Expand All @@ -113,7 +113,7 @@ func (q *UpdateQueue) run() {
case request := <-q.queue:
responseBody, err := q.update(request.IndexName, request.RequestBody)
if err != nil {
log.Error().Err(err).Msgf("Update request failed %v", responseBody)
log.Error().Err(err).Msgf("update request failed %v", responseBody)
request.Response <- Response{Err: err}
continue
}
Expand Down

0 comments on commit 269bfb8

Please sign in to comment.