Skip to content

Commit

Permalink
NRelay1: cmd -> msg for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgleason committed Oct 10, 2024
1 parent ef0aa82 commit d8afed2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nostrify/NRelay1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,13 @@ export class NRelay1 implements NRelay {

this.send(['COUNT', subscriptionId, ...filters]);

const cmd = await result;
const msg = await result;

switch (cmd[0]) {
switch (msg[0]) {
case 'CLOSED':
throw new Error('Subscription closed');
case 'COUNT': {
const [, , count] = cmd;
const [, , count] = msg;
return count;
}
}
Expand Down

0 comments on commit d8afed2

Please sign in to comment.