MCPcopy
hub / github.com/elastic/go-elasticsearch / notifyItemsOnError

Method notifyItemsOnError

esutil/bulk_indexer.go:828–834  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

826}
827
828func (w *worker) notifyItemsOnError(err error) {
829 for _, item := range w.items {
830 if item.OnFailure != nil {
831 item.OnFailure(item.ctx, item, BulkIndexerResponseItem{}, err)
832 }
833 }
834}
835
836func (w *worker) handleError(ctx context.Context, err error) {
837 if w.bi.config.OnError != nil {

Callers 1

handleErrorMethod · 0.95

Calls 1

OnFailureMethod · 0.45

Tested by

no test coverage detected