Skip to content

Commit e881e3a

Browse files
committed
fix(go): typo on internal helper
1 parent 7c8b8ef commit e881e3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/go/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func partialUpdateObjectsToChunkedBatchOptions(opts []PartialUpdateObjectsOption
294294
return chunkedBatchOpts
295295
}
296296

297-
func replaceAllObjectsToChunkBactchOptions(opts []ReplaceAllObjectsOption) []ChunkedBatchOption {
297+
func replaceAllObjectsToChunkBatchOptions(opts []ReplaceAllObjectsOption) []ChunkedBatchOption {
298298
chunkedBatchOpts := make([]ChunkedBatchOption, 0, len(opts))
299299
300300
for _, opt := range opts {

templates/go/search_helpers.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ func (c *APIClient) ReplaceAllObjectsWithTransformation(indexName string, object
632632
return nil, err
633633
}
634634

635-
watchResp, err := c.ingestionTransporter.ChunkedPush(tmpIndexName, objects, ingestion.Action(ACTION_ADD_OBJECT), &indexName, toIngestionChunkedBatchOptions(replaceAllObjectsToChunkBactchOptions(opts))...)
635+
watchResp, err := c.ingestionTransporter.ChunkedPush(tmpIndexName, objects, ingestion.Action(ACTION_ADD_OBJECT), &indexName, toIngestionChunkedBatchOptions(replaceAllObjectsToChunkBatchOptions(opts))...)
636636
if err != nil {
637637
_, _ = c.DeleteIndex(c.NewApiDeleteIndexRequest(tmpIndexName))
638638
@@ -722,7 +722,7 @@ func (c *APIClient) ReplaceAllObjects(indexName string, objects []map[string]any
722722
return nil, err
723723
}
724724

725-
batchResp, err := c.ChunkedBatch(tmpIndexName, objects, ACTION_ADD_OBJECT, replaceAllObjectsToChunkBactchOptions(opts)...)
725+
batchResp, err := c.ChunkedBatch(tmpIndexName, objects, ACTION_ADD_OBJECT, replaceAllObjectsToChunkBatchOptions(opts)...)
726726
if err != nil {
727727
_, _ = c.DeleteIndex(c.NewApiDeleteIndexRequest(tmpIndexName))
728728

0 commit comments

Comments
 (0)