Skip to content

Commit 22a5302

Browse files
ryanpbrewsterMichael Lehenbauer
authored andcommitted
Stop hacking around old gRPC misbehavior (firebase#1803)
1 parent dc50232 commit 22a5302

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/firestore/src/platform_node/grpc_connection.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,7 @@ export class GrpcConnection implements Connection {
9797
: grpc.credentials.createInsecure();
9898
this.cachedStub = new this.firestore.Firestore(
9999
this.databaseInfo.host,
100-
credentials,
101-
{
102-
// We do our own connection backoff (that for example is aware of whether or
103-
// not a write stream error is permanent or not) so we don't want gRPC to do
104-
// backoff on top of that. 100ms is the minimum value that gRPC allows.
105-
'grpc.initial_reconnect_backoff_ms': 100,
106-
'grpc.max_reconnect_backoff_ms': 100
107-
}
100+
credentials
108101
);
109102
}
110103
return this.cachedStub;

0 commit comments

Comments
 (0)