Skip to content

Commit

Permalink
Request timeout const name correction (#2743)
Browse files Browse the repository at this point in the history
* request timeout value correction

* request timeout constant name change

---------

Co-authored-by: Lahiru Maramba <llahiru@gmail.com>
  • Loading branch information
tauksun and lahirumaramba authored Oct 30, 2024
1 parent 3234309 commit 8bb5691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/messaging/batch-request-internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { FirebaseAppError, AppErrorCodes } from '../utils/error';

const PART_BOUNDARY = '__END_OF_PART__';
const TEN_SECONDS_IN_MILLIS = 15000;
const FIFTEEN_SECONDS_IN_MILLIS = 15000;

/**
* Represents a request that can be sent as part of an HTTP batch request.
Expand Down Expand Up @@ -72,7 +72,7 @@ export class BatchRequestClient {
url: this.batchUrl,
data: this.getMultipartPayload(requests),
headers: Object.assign({}, this.commonHeaders, requestHeaders),
timeout: TEN_SECONDS_IN_MILLIS,
timeout: FIFTEEN_SECONDS_IN_MILLIS,
};
return this.httpClient.send(request).then((response) => {
if (!response.multipart) {
Expand Down

0 comments on commit 8bb5691

Please sign in to comment.