From 8e6d57cec9a03cac784d8838d1b2f9d658b59c8a Mon Sep 17 00:00:00 2001 From: shuntaka9576 Date: Sun, 12 Jun 2022 18:24:47 +0900 Subject: [PATCH] fix: the counts displayed in the console --- client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 678c194..21396c4 100644 --- a/client.go +++ b/client.go @@ -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") }