Skip to content

Commit ceaa92f

Browse files
authored
Set default requiresLeader to false in readAll and readStream methods (#416)
1 parent e297714 commit ceaa92f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/db-client/src/streams/readAll.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Client.prototype.readAll = function (
6969
fromPosition,
7070
resolvesLink: resolveLinkTos,
7171
direction,
72-
requiresLeader: baseOptions.requiresLeader ?? true,
72+
requiresLeader: baseOptions.requiresLeader ?? false,
7373
credentials: baseOptions.credentials,
7474
filter: baseOptions.filter,
7575
};

packages/db-client/src/streams/readStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Client.prototype.readStream = function <
7070
fromRevision,
7171
resolvesLink: resolveLinkTos,
7272
direction,
73-
requiresLeader: baseOptions.requiresLeader ?? true,
73+
requiresLeader: baseOptions.requiresLeader ?? false,
7474
credentials: baseOptions.credentials,
7575
};
7676
switch (fromRevision) {

0 commit comments

Comments
 (0)