Skip to content

Commit 27c5482

Browse files
Closing stream when idle
1 parent 035a46b commit 27c5482

File tree

6 files changed

+234
-193
lines changed

6 files changed

+234
-193
lines changed

packages/firestore/src/remote/datastore.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,30 +58,24 @@ export class Datastore {
5858
private initialBackoffDelay?: number
5959
) {}
6060

61-
public newPersistentWriteStream(
62-
listener: WriteStreamListener
63-
): PersistentWriteStream {
61+
public newPersistentWriteStream(): PersistentWriteStream {
6462
return new PersistentWriteStream(
6563
this.databaseInfo,
6664
this.queue,
6765
this.connection,
6866
this.credentials,
6967
this.serializer,
70-
listener,
7168
this.initialBackoffDelay
7269
);
7370
}
7471

75-
public newPersistentWatchStream(
76-
listener: WatchStreamListener
77-
): PersistentListenStream {
72+
public newPersistentWatchStream(): PersistentListenStream {
7873
return new PersistentListenStream(
7974
this.databaseInfo,
8075
this.queue,
8176
this.connection,
8277
this.credentials,
8378
this.serializer,
84-
listener,
8579
this.initialBackoffDelay
8680
);
8781
}

0 commit comments

Comments
 (0)