Skip to content

Commit

Permalink
refactor: use Writer from @std/io (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored Jun 18, 2024
1 parent 46afa10 commit 629eae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { chunk } from "@std/collections/chunk";
import { concat } from "@std/bytes/concat";
import { readDelim } from "@std/io/read_delim";
import { writeAll } from "@std/io/write_all";
import type { Writer } from "@std/io/types";

/**
* A Redis client that can be used to send commands to a Redis server.
Expand Down Expand Up @@ -80,7 +81,7 @@ function createRequest(command: Command): Uint8Array {
}

async function writeCommand(
writer: Deno.Writer,
writer: Writer,
command: Command,
): Promise<void> {
await writeAll(writer, createRequest(command));
Expand Down

0 comments on commit 629eae4

Please sign in to comment.