Skip to content

Commit

Permalink
fix: the counts displayed in the console
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntaka9576 committed Jun 12, 2022
1 parent 541931b commit 8e6d57c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ func (d *DDBClient) BatchWrite(ctx context.Context, req BatchRequest) (output Ba
}

output.UnprocessedRecord = append(output.UnprocessedRecord, string(jsonByte))
output.SuccessCount = req.Number() - unprocessedNum

return output, err
}
output.SuccessCount = req.Number() - len(output.UnprocessedRecord)

return output, err
} else {
return output, errors.New("undefined retry value")
}
Expand Down

0 comments on commit 8e6d57c

Please sign in to comment.