fix: update accumulator for total bytes written

This commit is contained in:
Himadri Bhattacharjee 2023-09-03 07:54:16 +05:30
parent d987a08549
commit 341d47622c

View File

@ -25,7 +25,7 @@ func (conn *Conn) WriteChunks(c [][]byte) (n int, err error) {
return 0, nil return 0, nil
} }
b += total total += b
} }
return total, nil return total, nil