Skip to content

Commit 5ba0d49

Browse files
refactor: minor edit
Following 655dce9
1 parent b1eed5f commit 5ba0d49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/socket.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ interface Flags {
9696
compress?: boolean;
9797
volatile?: boolean;
9898
timeout?: number;
99-
withRetry?: boolean;
99+
fromQueue?: boolean;
100100
}
101101

102102
export type DisconnectDescription =
@@ -381,7 +381,7 @@ export class Socket<
381381

382382
args.unshift(ev);
383383

384-
if (this._opts.retries && !this.flags.withRetry && !this.flags.volatile) {
384+
if (this._opts.retries && !this.flags.fromQueue && !this.flags.volatile) {
385385
let ack;
386386
if (typeof args[args.length - 1] === "function") {
387387
ack = args.pop();
@@ -392,7 +392,7 @@ export class Socket<
392392
pending: false,
393393
args,
394394
ack,
395-
flags: Object.assign({ withRetry: true }, this.flags),
395+
flags: Object.assign({ fromQueue: true }, this.flags),
396396
});
397397
this._drainQueue();
398398
return this;

0 commit comments

Comments
 (0)