Skip to content

Commit 42cf90b

Browse files
committed
Formatting
1 parent c975f8a commit 42cf90b

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

src/isotopes/client/index.ts

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ export interface IsotopeClientItemList {
5454
next?: string /* Pagination token */
5555
}
5656

57+
/* ----------------------------------------------------------------------------
58+
* Values
59+
* ------------------------------------------------------------------------- */
60+
61+
/**
62+
* Default client options
63+
*
64+
* We're not using the exponential backoff strategy (as recommended) due to the
65+
* observations made in this article: https://bit.ly/2AJQiNV
66+
*/
67+
const defaultOptions: Required<IsotopeClientOptions> = {
68+
consistent: false,
69+
retry: {
70+
minTimeout: 100,
71+
maxTimeout: 250,
72+
retries: 3,
73+
factor: 1
74+
}
75+
}
76+
5777
/* ----------------------------------------------------------------------------
5878
* Functions
5979
* ------------------------------------------------------------------------- */
@@ -87,30 +107,6 @@ export function retryable<T>(
87107
})
88108
}
89109

90-
/* ----------------------------------------------------------------------------
91-
* Values
92-
* ------------------------------------------------------------------------- */
93-
94-
/**
95-
* Default client options
96-
*
97-
* We're not using the exponential backoff strategy (as recommended) due to the
98-
* observations made in this article: https://bit.ly/2AJQiNV
99-
*/
100-
const defaultOptions: Required<IsotopeClientOptions> = {
101-
consistent: false,
102-
retry: {
103-
minTimeout: 100,
104-
maxTimeout: 250,
105-
retries: 3,
106-
factor: 1
107-
}
108-
}
109-
110-
/* ----------------------------------------------------------------------------
111-
* Functions
112-
* ------------------------------------------------------------------------- */
113-
114110
/**
115111
* Map a dictionary to a list of SimpleDB attributes
116112
*

0 commit comments

Comments
 (0)