Skip to content

Commit

Permalink
Merge pull request #66 from Tadwork/fix-websocket-error-in-tail
Browse files Browse the repository at this point in the history
use stream.opened instead of stream.connection
  • Loading branch information
shawn-render authored Dec 5, 2023
2 parents 79dad1b + 554e415 commit e40cb38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/services/tail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const servicesTailCommand =
let writer: WritableStreamDefaultWriter<string | Uint8Array>;

try {
conn = await stream.connection;
conn = await stream.opened;
reader = await conn.readable.getReader();
writer = await conn.writable.getWriter();
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion util/find-up.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ Deno.test('findUp', async (t) => {
assertEquals(ret, null);
});

Deno.remove(root, { recursive: true });
await Deno.remove(root, { recursive: true });
});

0 comments on commit e40cb38

Please sign in to comment.