This commit is contained in:
@ -177,7 +177,14 @@ class TfElement extends LitElement {
|
||||
|
||||
const k_chunk_size = 1024;
|
||||
let min_row_id = 0;
|
||||
console.log('loading about for', ids.length, 'accounts', cache.last_row_id, '=>', max_row_id);
|
||||
console.log(
|
||||
'loading about for',
|
||||
ids.length,
|
||||
'accounts',
|
||||
cache.last_row_id,
|
||||
'=>',
|
||||
max_row_id
|
||||
);
|
||||
try {
|
||||
while (true) {
|
||||
let abouts = await tfrpc.rpc.query(
|
||||
@ -229,7 +236,14 @@ class TfElement extends LitElement {
|
||||
}
|
||||
max_seen = about.rowid;
|
||||
}
|
||||
console.log('cache =', cache.last_row_id, 'seen =', max_seen, 'max =', max_row_id);
|
||||
console.log(
|
||||
'cache =',
|
||||
cache.last_row_id,
|
||||
'seen =',
|
||||
max_seen,
|
||||
'max =',
|
||||
max_row_id
|
||||
);
|
||||
cache.last_row_id = Math.max(cache.last_row_id, max_seen ?? max_row_id);
|
||||
min_row_id = Math.max(min_row_id, max_seen ?? max_row_id);
|
||||
let new_cache = JSON.stringify(cache);
|
||||
|
Reference in New Issue
Block a user