UNPKG

694 BJavaScriptView Raw
1export var loadConfigsForDefaultMode = function (mode) {
2 switch (mode) {
3 case "standard":
4 return {
5 retryMode: "standard",
6 connectionTimeout: 3100,
7 };
8 case "in-region":
9 return {
10 retryMode: "standard",
11 connectionTimeout: 1100,
12 };
13 case "cross-region":
14 return {
15 retryMode: "standard",
16 connectionTimeout: 3100,
17 };
18 case "mobile":
19 return {
20 retryMode: "standard",
21 connectionTimeout: 30000,
22 };
23 default:
24 return {};
25 }
26};