Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
uki00a committed Oct 18, 2023
1 parent b9cabb3 commit e43a9b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions connection.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { readReply, sendCommand, sendCommands } from "./protocol/mod.ts";
import type { Command, RedisReply, RedisValue } from "./protocol/mod.ts";
import type { RedisReply, RedisValue } from "./protocol/mod.ts";
import type { Command } from "./protocol/command.ts";
import type { Backoff } from "./backoff.ts";
import { exponentialBackoff } from "./backoff.ts";
import { ErrorReplyError, isRetriableError } from "./errors.ts";
Expand Down Expand Up @@ -64,7 +65,7 @@ export interface RedisConnectionOptions {

export const kEmptyRedisArgs: Array<RedisValue> = [];

interface Command {
interface PendingCommand {
name: string;
args: RedisValue[];
promise: Deferred<RedisReply>;
Expand All @@ -84,7 +85,7 @@ export class RedisConnection implements Connection {
private _isConnected = false;
private backoff: Backoff;

private commandQueue: Command[] = [];
private commandQueue: PendingCommand[] = [];

get isClosed(): boolean {
return this._isClosed;
Expand Down
1 change: 0 additions & 1 deletion protocol/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ export type {

export { okReply, readArrayReply, readReply } from "./reply.ts";

export type { Command } from "./command.ts";
export { sendCommand, sendCommands } from "./command.ts";

0 comments on commit e43a9b2

Please sign in to comment.