Skip to content

Commit

Permalink
fix: delete the redis conn underlying buffer size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
EquentR committed Dec 16, 2024
1 parent e706735 commit 08470fc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 73 deletions.
1 change: 0 additions & 1 deletion internal/client/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func NewRedisClient(ctx context.Context, address string, username string, passwo

r.conn = conn
// Increase the size of the underlying TCP send cache to avoid short-write errors
SetWriteConnBuff(r.conn, 128*1024)
r.reader = bufio.NewReader(conn)
r.writer = bufio.NewWriterSize(conn, 32*1024) // size is 32KiB
r.protoReader = proto.NewReader(r.reader)
Expand Down
18 changes: 0 additions & 18 deletions internal/client/util.go

This file was deleted.

28 changes: 0 additions & 28 deletions internal/client/util_unix.go

This file was deleted.

26 changes: 0 additions & 26 deletions internal/client/util_windows.go

This file was deleted.

0 comments on commit 08470fc

Please sign in to comment.