Skip to content

Commit

Permalink
fix: add defaults to request builder (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Ziv authored Jul 28, 2020
1 parent 45c4038 commit 9ddacb1
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 21 deletions.
6 changes: 3 additions & 3 deletions dist/playkit-analytics-service.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-analytics-service.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/playkit-bookmark-service.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-bookmark-service.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/playkit-ott-provider.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-ott-provider.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/playkit-ovp-provider.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-ovp-provider.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/playkit-stats-service.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/playkit-stats-service.js.map

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion src/util/request-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export default class RequestBuilder {
* @memberof RequestBuilder
* @type {ProviderNetworkRetryParameters}
*/
retryConfig: ProviderNetworkRetryParameters;
retryConfig: ProviderNetworkRetryParameters = {
async: true,
timeout: 0,
maxAttempts: 4
};

/**
* @description number of xhr attempts for the same multi - request.
Expand Down

0 comments on commit 9ddacb1

Please sign in to comment.