Skip to content

Commit

Permalink
changed default serverBackoffCapMillis
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanmar511 committed Nov 29, 2017
1 parent 03cabf6 commit e82d2d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ts/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface Config extends AuthenticationConfig {
// when next profile is collected) will run immediately if the backoff is
// too large.
// https://nodejs.org/dist/latest-v9.x/docs/api/timers.html#timers_settimeout_callback_delay_args.
serverBackoffCapMillis?: 2147483646;
serverBackoffCapMillis?: number;
}

// Interface for an initialized config.
Expand Down Expand Up @@ -133,5 +133,5 @@ export const defaultConfig = {
initialBackoffMillis: 1000,
backoffCapMillis: parseDuration('1h'),
backoffMultiplier: 1.3,
serverBackoffCapMillis: parseDuration('7d')
serverBackoffCapMillis: 2147483647
};
2 changes: 1 addition & 1 deletion ts/test/test-init-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('initConfig', () => {
initialBackoffMillis: 1000,
backoffCapMillis: 60 * 60 * 1000,
backoffMultiplier: 1.3,
serverBackoffCapMillis: 7 * 24 * 60 * 60 * 1000
serverBackoffCapMillis: 2147483647
};

it('should not modify specified fields when not on GCE', async () => {
Expand Down

0 comments on commit e82d2d5

Please # to comment.