tweak some variables and comments to alerting bulk

Signed-off-by: junotx <junotx@126.com>
This commit is contained in:
junotx
2021-03-05 10:57:03 +08:00
parent c92431547f
commit 302000a650
3 changed files with 40 additions and 40 deletions

View File

@@ -475,8 +475,8 @@ type BulkResponse struct {
Items []*BulkItemResponse `json:"items" description:"It contains the result of each operation in the bulk request"`
}
// Neaten neatens the internal items and sets the errors
func (br *BulkResponse) Neaten() *BulkResponse {
// MakeBulkResponse tidies the internal items and sets the errors
func (br *BulkResponse) MakeBulkResponse() *BulkResponse {
var (
items []*BulkItemResponse
itemMap = make(map[string]*BulkItemResponse)