Skip to content

Commit

Permalink
Rolling back the use of useFetchStreams, which has lead to hanging qu…
Browse files Browse the repository at this point in the history
…eries.
  • Loading branch information
MarkDuckworth committed Oct 26, 2023
1 parent cac9165 commit 2af182a
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ import {
EventTarget,
StatEvent,
Event,
Stat
Stat,
FetchXmlHttpFactory
} from '@firebase/webchannel-wrapper';

import { Token } from '../../api/credentials';
Expand Down Expand Up @@ -208,7 +209,9 @@ export class WebChannelConnection extends RestConnection {
}

if (this.useFetchStreams) {
request.useFetchStreams = true;
// When b/307942499 is fixed, revert to the following line:
// request.useFetchStreams = true;
request.xmlHttpFactory = new FetchXmlHttpFactory({});
}

this.modifyHeadersForRequest(
Expand Down

0 comments on commit 2af182a

Please sign in to comment.