writeMeta writes the item metadata to the buffer.
(item *BulkIndexerItem)
| 640 | |
| 641 | // writeMeta writes the item metadata to the buffer. |
| 642 | func (w *worker) writeMeta(item *BulkIndexerItem) error { |
| 643 | if _, err := w.buf.Write(item.meta.Bytes()); err != nil { |
| 644 | return err |
| 645 | } |
| 646 | return nil |
| 647 | } |
| 648 | |
| 649 | // writeBody writes the item body to the buffer. |
| 650 | func (w *worker) writeBody(item *BulkIndexerItem) error { |