From 42cf90be4356f28add059092e2803f2bfa35f3aa Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 5 Aug 2018 21:33:46 +0200 Subject: [PATCH] Formatting --- src/isotopes/client/index.ts | 44 ++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/src/isotopes/client/index.ts b/src/isotopes/client/index.ts index eaf359a4..414c306f 100644 --- a/src/isotopes/client/index.ts +++ b/src/isotopes/client/index.ts @@ -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 = { + consistent: false, + retry: { + minTimeout: 100, + maxTimeout: 250, + retries: 3, + factor: 1 + } +} + /* ---------------------------------------------------------------------------- * Functions * ------------------------------------------------------------------------- */ @@ -87,30 +107,6 @@ export function retryable( }) } -/* ---------------------------------------------------------------------------- - * 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 = { - consistent: false, - retry: { - minTimeout: 100, - maxTimeout: 250, - retries: 3, - factor: 1 - } -} - -/* ---------------------------------------------------------------------------- - * Functions - * ------------------------------------------------------------------------- */ - /** * Map a dictionary to a list of SimpleDB attributes *