You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
EventIndexPanel: Move the comments around for the getStats calls.
This commit is contained in:
@@ -50,11 +50,11 @@ export default class ManageEventIndexDialog extends React.Component {
|
|||||||
const eventIndex = EventIndexPeg.get();
|
const eventIndex = EventIndexPeg.get();
|
||||||
let stats;
|
let stats;
|
||||||
|
|
||||||
// This call may fail if sporadically, not a huge issue as we will try
|
|
||||||
// later again and probably succeed.
|
|
||||||
try {
|
try {
|
||||||
stats = await eventIndex.getStats();
|
stats = await eventIndex.getStats();
|
||||||
} catch {
|
} catch {
|
||||||
|
// This call may fail if sporadically, not a huge issue as we will
|
||||||
|
// try later again and probably succeed.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,6 +99,9 @@ export default class ManageEventIndexDialog extends React.Component {
|
|||||||
eventIndexSize = stats.size;
|
eventIndexSize = stats.size;
|
||||||
eventCount = stats.eventCount;
|
eventCount = stats.eventCount;
|
||||||
} catch {
|
} catch {
|
||||||
|
// This call may fail if sporadically, not a huge issue as we
|
||||||
|
// will try later again in the updateCurrentRoom call and
|
||||||
|
// probably succeed.
|
||||||
}
|
}
|
||||||
|
|
||||||
const roomStats = eventIndex.crawlingRooms();
|
const roomStats = eventIndex.crawlingRooms();
|
||||||
|
|||||||
@@ -41,11 +41,11 @@ export default class EventIndexPanel extends React.Component {
|
|||||||
const eventIndex = EventIndexPeg.get();
|
const eventIndex = EventIndexPeg.get();
|
||||||
let stats;
|
let stats;
|
||||||
|
|
||||||
// This call may fail if sporadically, not a huge issue as we will try
|
|
||||||
// later again and probably succeed.
|
|
||||||
try {
|
try {
|
||||||
stats = await eventIndex.getStats();
|
stats = await eventIndex.getStats();
|
||||||
} catch {
|
} catch {
|
||||||
|
// This call may fail if sporadically, not a huge issue as we will
|
||||||
|
// try later again and probably succeed.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,6 +83,9 @@ export default class EventIndexPanel extends React.Component {
|
|||||||
eventIndexSize = stats.size;
|
eventIndexSize = stats.size;
|
||||||
roomCount = stats.roomCount;
|
roomCount = stats.roomCount;
|
||||||
} catch {
|
} catch {
|
||||||
|
// This call may fail if sporadically, not a huge issue as we
|
||||||
|
// will try later again in the updateCurrentRoom call and
|
||||||
|
// probably succeed.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user