From 86f4b0373030fefce306f712fd97b40a6c46dcef Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Fri, 30 Mar 2018 09:52:46 +0200 Subject: [PATCH] Remove unneeded byte counters --- internal/backend/rclone/stdio_conn.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/internal/backend/rclone/stdio_conn.go b/internal/backend/rclone/stdio_conn.go index bb4928176..4abbb7c9a 100644 --- a/internal/backend/rclone/stdio_conn.go +++ b/internal/backend/rclone/stdio_conn.go @@ -11,22 +11,19 @@ import ( // StdioConn implements a net.Conn via stdin/stdout. type StdioConn struct { - stdin *os.File - stdout *os.File - bytesWritten, bytesRead int - cmd *exec.Cmd - close sync.Once + stdin *os.File + stdout *os.File + cmd *exec.Cmd + close sync.Once } func (s *StdioConn) Read(p []byte) (int, error) { n, err := s.stdin.Read(p) - s.bytesRead += n return n, err } func (s *StdioConn) Write(p []byte) (int, error) { n, err := s.stdout.Write(p) - s.bytesWritten += n return n, err }