Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Aug 5, 2018
1 parent c975f8a commit 42cf90b
Showing 1 changed file with 20 additions and 24 deletions.
44 changes: 20 additions & 24 deletions src/isotopes/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,26 @@ export interface IsotopeClientItemList {
next?: string /* Pagination token */
}

/* ----------------------------------------------------------------------------
* Values
* ------------------------------------------------------------------------- */

/**
* Default client options
*
* We're not using the exponential backoff strategy (as recommended) due to the
* observations made in this article: https://bit.ly/2AJQiNV
*/
const defaultOptions: Required<IsotopeClientOptions> = {
consistent: false,
retry: {
minTimeout: 100,
maxTimeout: 250,
retries: 3,
factor: 1
}
}

/* ----------------------------------------------------------------------------
* Functions
* ------------------------------------------------------------------------- */
Expand Down Expand Up @@ -87,30 +107,6 @@ export function retryable<T>(
})
}

/* ----------------------------------------------------------------------------
* Values
* ------------------------------------------------------------------------- */

/**
* Default client options
*
* We're not using the exponential backoff strategy (as recommended) due to the
* observations made in this article: https://bit.ly/2AJQiNV
*/
const defaultOptions: Required<IsotopeClientOptions> = {
consistent: false,
retry: {
minTimeout: 100,
maxTimeout: 250,
retries: 3,
factor: 1
}
}

/* ----------------------------------------------------------------------------
* Functions
* ------------------------------------------------------------------------- */

/**
* Map a dictionary to a list of SimpleDB attributes
*
Expand Down

0 comments on commit 42cf90b

Please sign in to comment.