Skip to content

Commit

Permalink
fix: Correct reachability timeouts in default configuration (#301 by @…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstritzl authored Feb 12, 2020
1 parent 3992bd7 commit f74b8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const DEFAULT_CONFIGURATION = {
reachabilityUrl: 'https://clients3.google.com/generate_204',
reachabilityTest: (response: Response): Promise<boolean> =>
Promise.resolve(response.status === 204),
reachabilityShortTimeout: 60 * 1000, // 60s
reachabilityLongTimeout: 5 * 1000, // 5s
reachabilityLongTimeout: 60 * 1000, // 60s
reachabilityShortTimeout: 5 * 1000, // 5s
};

// Stores the currently used configuration
Expand Down

0 comments on commit f74b8cc

Please sign in to comment.