1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

perf: reduce unnecessary memory allocation (#3399)

Signed-off-by: fukua95 <fukua95@gmail.com>
Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
fukua95
2025-06-09 16:59:58 +08:00
committed by GitHub
parent 0f40ae3ff2
commit eb40ac8328
6 changed files with 29 additions and 59 deletions

View File

@ -11,7 +11,7 @@ type mockCmdable struct {
returnErr error
}
func (m *mockCmdable) call(ctx context.Context, cmd Cmder) error {
func (m *mockCmdable) call(_ context.Context, cmd Cmder) error {
m.lastCmd = cmd
if m.returnErr != nil {
cmd.SetErr(m.returnErr)