Skip to content

Commit

Permalink
Add RESP reset() on handleConn
Browse files Browse the repository at this point in the history
  • Loading branch information
diiyw committed Apr 27, 2024
1 parent ba4d5aa commit 2dffed0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions redis/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@ func handleConn(conn net.Conn, handler func(cmd Value, args []Value) Value) {
cmd.Args = value.Args
result := handler(cmd, value.Array[1:])
_ = writer.Write(result)
resp.reset()
}
}

0 comments on commit 2dffed0

Please sign in to comment.