Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Mar 25, 2022
1 parent 5792e80 commit 6d0576a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libs/actions/PersistedRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import lodashUnionWith from 'lodash/unionWith';
import ONYXKEYS from '../../ONYXKEYS';
import RetryCounter from '../RetryCounter';

const persistedRequestsRetryCount = new RetryCounter();
const persistedRequestsRetryCounter = new RetryCounter();
let persistedRequests = [];

Onyx.connect({
Expand All @@ -14,7 +14,7 @@ Onyx.connect({

function clear() {
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, []);
persistedRequestsRetryCount.clear();
persistedRequestsRetryCounter.clear();
}

/**
Expand All @@ -29,7 +29,7 @@ function save(requestsToPersist) {
* @param {Object} requestToRemove
*/
function remove(requestToRemove) {
persistedRequestsRetryCount.remove(requestToRemove);
persistedRequestsRetryCounter.remove(requestToRemove);
persistedRequests = _.reject(persistedRequests, persistedRequest => _.isEqual(persistedRequest, requestToRemove));
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, persistedRequests);
}
Expand All @@ -46,7 +46,7 @@ function getAll() {
* @returns {Number}
*/
function incrementRetries(request) {
return persistedRequestsRetryCount.incrementRetries(request);
return persistedRequestsRetryCounter.incrementRetries(request);
}

export {
Expand Down

0 comments on commit 6d0576a

Please sign in to comment.