From 341d47622cf1afd2133eeb1fb86f2213c10c79af Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee Date: Sun, 3 Sep 2023 07:54:16 +0530 Subject: [PATCH] fix: update accumulator for total bytes written --- net/conn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/conn.go b/net/conn.go index f6b88d0..7959cf7 100644 --- a/net/conn.go +++ b/net/conn.go @@ -25,7 +25,7 @@ func (conn *Conn) WriteChunks(c [][]byte) (n int, err error) { return 0, nil } - b += total + total += b } return total, nil