Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Jul 29, 2021
1 parent 4efe050 commit c76aa8c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/libs/Network.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ ActiveClientManager.isReady().then(() => {
Onyx.connect({
key: ONYXKEYS.NETWORK_REQUEST_QUEUE,
callback: (persistedRequests) => {
console.debug('leader', ActiveClientManager.isClientTheLeader());

// NETWORK_REQUEST_QUEUE is shared across clients, thus every client will have similiar copy of
// NETWORK_REQUEST_QUEUE. It is very important to only process the queue from leader client
// otherwise requests will be duplicated.
Expand All @@ -63,7 +61,6 @@ ActiveClientManager.isReady().then(() => {
|| !persistedRequests.length) {
return;
}
console.debug('process', persistedRequests.length);

// Queue processing expects handlers but due to we are loading the requests from Storage
// we just noop them to ignore the errors.
Expand Down

0 comments on commit c76aa8c

Please sign in to comment.