EventIndexing: Don't capitalize homeserver.

pull/21833/head
Damir Jelić 2019-11-18 10:35:57 +01:00
parent 050e52ce46
commit 3b06c684d2
1 changed files with 4 additions and 4 deletions

View File

@ -59,8 +59,8 @@ export default class EventIndexer {
return client.isRoomEncrypted(room.roomId); return client.isRoomEncrypted(room.roomId);
}; };
// We only care to crawl the encrypted rooms, non-encrytped // We only care to crawl the encrypted rooms, non-encrypted.
// rooms can use the search provided by the Homeserver. // rooms can use the search provided by the homeserver.
const encryptedRooms = rooms.filter(isRoomEncrypted); const encryptedRooms = rooms.filter(isRoomEncrypted);
console.log("EventIndex: Adding initial crawler checkpoints"); console.log("EventIndex: Adding initial crawler checkpoints");
@ -189,7 +189,7 @@ export default class EventIndexer {
while (!cancelled) { while (!cancelled) {
// This is a low priority task and we don't want to spam our // This is a low priority task and we don't want to spam our
// Homeserver with /messages requests so we set a hefty timeout // homeserver with /messages requests so we set a hefty timeout
// here. // here.
await sleep(this._crawlerTimeout); await sleep(this._crawlerTimeout);
@ -210,7 +210,7 @@ export default class EventIndexer {
console.log("EventIndex: crawling using checkpoint", checkpoint); console.log("EventIndex: crawling using checkpoint", checkpoint);
// We have a checkpoint, let us fetch some messages, again, very // We have a checkpoint, let us fetch some messages, again, very
// conservatively to not bother our Homeserver too much. // conservatively to not bother our homeserver too much.
const eventMapper = client.getEventMapper(); const eventMapper = client.getEventMapper();
// TODO we need to ensure to use member lazy loading with this // TODO we need to ensure to use member lazy loading with this
// request so we get the correct profiles. // request so we get the correct profiles.