From f006df7758e3bbd4fda20cb4484f20ffad6e9dfe Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Thu, 13 Sep 2018 10:39:00 -0500 Subject: [PATCH] re-order ImportRoaringBytes args to be more consistent --- api.go | 2 +- http/handler.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api.go b/api.go index 205be064b..d35bd2f3a 100644 --- a/api.go +++ b/api.go @@ -312,7 +312,7 @@ func (api *API) Field(_ context.Context, indexName, fieldName string) (*Field, e // (shard*ShardWidth)+(i%ShardWidth). That is to say that roaringBytes // represents all of the rows in this shard of this field concatenated together // in one long bitmap. -func (api *API) ImportRoaringBytes(ctx context.Context, roaringBytes []byte, indexName, fieldName string, shard uint64) (err error) { +func (api *API) ImportRoaringBytes(ctx context.Context, indexName, fieldName string, shard uint64, roaringBytes []byte) (err error) { if err = api.validate(apiField); err != nil { return errors.Wrap(err, "validating api method") } diff --git a/http/handler.go b/http/handler.go index 822f242f3..e154b6db5 100644 --- a/http/handler.go +++ b/http/handler.go @@ -1458,7 +1458,7 @@ func (h *Handler) handlePostRoaringImport(w http.ResponseWriter, r *http.Request return } //TODO give meaningful stats for import - err = h.api.ImportRoaringBytes(r.Context(), body, indexName, fieldName, shard) + err = h.api.ImportRoaringBytes(r.Context(), indexName, fieldName, shard, body) // Marshal response object. msg := string("")