Skip to content

Commit 3e31180

Browse files
committed
Cleanup
1 parent 2b97eaf commit 3e31180

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ export const getTestPostgresDatabaseFactory = <
194194
await worker.available
195195

196196
for await (const msg of worker.subscribe()) {
197-
if (msg.data.type === "teardown") {
198-
console.log("breaking")
199-
break
200-
}
201197
rpcCallback!(msg.data)
202198
}
203199
})()

src/worker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export class Worker {
5757
testWorker.teardown(async () => {
5858
messageHandlerAbortController.abort()
5959
await messageHandlerPromise
60-
testWorker.publish({ type: "teardown" })
6160
})
6261

6362
const rpc: WorkerRpc = createBirpc<

0 commit comments

Comments
 (0)