Revert "add logging related to fragments"
This reverts commit 2f355cabef
.
This commit is contained in:
parent
c4a5de20c0
commit
44760a9f82
2 changed files with 1 additions and 14 deletions
|
@ -142,13 +142,6 @@ export default class FragmentIdComparer {
|
||||||
|
|
||||||
rebuild(fragments) {
|
rebuild(fragments) {
|
||||||
const islands = createIslands(fragments);
|
const islands = createIslands(fragments);
|
||||||
const fragmentJson = JSON.stringify(islands.map(i => {
|
|
||||||
return Array.from(i._idToSortIndex.entries())
|
|
||||||
.map(([id, idx]) => {return {id, idx};})
|
|
||||||
.sort((a, b) => a.idx - b.idx);
|
|
||||||
}));
|
|
||||||
const firstFragment = this._fragmentsById.values().next().value;
|
|
||||||
console.log("rebuilt fragment index", firstFragment && firstFragment.roomId, fragmentJson);
|
|
||||||
this._idToIsland = new Map();
|
this._idToIsland = new Map();
|
||||||
for(let island of islands) {
|
for(let island of islands) {
|
||||||
for(let id of island.fragmentIds) {
|
for(let id of island.fragmentIds) {
|
||||||
|
|
|
@ -33,13 +33,7 @@ export default class Timeline {
|
||||||
|
|
||||||
/** @package */
|
/** @package */
|
||||||
appendLiveEntries(newEntries) {
|
appendLiveEntries(newEntries) {
|
||||||
try {
|
this._remoteEntries.setManySorted(newEntries);
|
||||||
this._remoteEntries.setManySorted(newEntries);
|
|
||||||
} catch (err) {
|
|
||||||
console.error("error while appending live entries in roomId", this._roomId);
|
|
||||||
console.error(err.stack);
|
|
||||||
throw err;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @public */
|
/** @public */
|
||||||
|
|
Reference in a new issue