Skip to content

Commit

Permalink
fix: removeunused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
penpenpng committed Jun 11, 2023
1 parent d7a75b5 commit 6762c3b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// # Playground
// Edit here and try `yarn dev`

import { delay } from "rxjs";

import {
createRxBackwardReq,
createRxForwardReq,
Expand Down Expand Up @@ -38,12 +36,12 @@ rxNostr.switchRelays([
]);

const req0 = createRxBackwardReq();
const sub0 = rxNostr
rxNostr
.use(req0)
.subscribe((e) => console.log(0, e.event.id.slice(0, 5), e.subId, e.from));

const req1 = createRxForwardReq();
const sub1 = rxNostr
rxNostr
.use(req1)
.subscribe((e) => console.log(1, e.event.id.slice(0, 5), e.subId, e.from));

Expand All @@ -57,10 +55,3 @@ setTimeout(() => {
"wss://nostr.h3z.jp",
]);
}, 3000);

// setTimeout(() => {
// console.log("---");
// rxNostr
// .use(req1)
// .subscribe((e) => console.log(1, e.event.id.slice(0, 5), e.subId, e.from));
// }, 4000);

0 comments on commit 6762c3b

Please sign in to comment.