ssb: Remove now-duplicate logs.

This commit is contained in:
2025-11-16 12:01:23 -05:00
parent 3c1f60b62d
commit 2b9d712d48
2 changed files with 1 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
{ {
"type": "tildefriends-app", "type": "tildefriends-app",
"emoji": "🦀", "emoji": "🦀",
"previous": "&6mBMHVKDgkYigy+PnHmii8AJW68ezgCtk5vuQ+HwN7s=.sha256" "previous": "&h2f5ZDN1srctuCbTXvXbNwcs2KnRDbk10DlIdZePnXo=.sha256"
} }

View File

@@ -175,7 +175,6 @@ class TfTabNewsFeedElement extends LitElement {
[this.hash.substring(1)] [this.hash.substring(1)]
); );
} else if (this.hash.startsWith('##')) { } else if (this.hash.startsWith('##')) {
let t0 = new Date();
let initial_messages = await tfrpc.rpc.query( let initial_messages = await tfrpc.rpc.query(
` `
WITH WITH
@@ -203,12 +202,7 @@ class TfTabNewsFeedElement extends LitElement {
k_max_results, k_max_results,
] ]
); );
let t1 = new Date();
result = await this._fetch_related_messages(initial_messages); result = await this._fetch_related_messages(initial_messages);
let t2 = new Date();
console.log(
`load of ${result.length} rows took ${(t2 - t0) / 1000} (${(t1 - t0) / 1000} to find ${initial_messages.length} initial messages, ${(t2 - t1) / 1000} to find ${result.length} total messages) following=${this.following.length} st=${start_time} et=${end_time}`
);
} else if (this.hash.startsWith('#🔐')) { } else if (this.hash.startsWith('#🔐')) {
let ids = let ids =
this.hash == '#🔐' ? [] : this.hash.substring('#🔐'.length).split(','); this.hash == '#🔐' ? [] : this.hash.substring('#🔐'.length).split(',');
@@ -253,7 +247,6 @@ class TfTabNewsFeedElement extends LitElement {
[JSON.stringify(this.following), start_time, end_time, k_max_results] [JSON.stringify(this.following), start_time, end_time, k_max_results]
); );
} else { } else {
let t0 = new Date();
let initial_messages = await tfrpc.rpc.query( let initial_messages = await tfrpc.rpc.query(
` `
WITH WITH
@@ -279,12 +272,7 @@ class TfTabNewsFeedElement extends LitElement {
JSON.stringify(Object.keys(this.channels_latest)), JSON.stringify(Object.keys(this.channels_latest)),
] ]
); );
let t1 = new Date();
result = await this._fetch_related_messages(initial_messages); result = await this._fetch_related_messages(initial_messages);
let t2 = new Date();
console.log(
`load of ${result.length} rows took ${(t2 - t0) / 1000} (${(t1 - t0) / 1000} to find ${initial_messages.length} initial messages, ${(t2 - t1) / 1000} to find ${result.length} total messages) following=${this.following.length} st=${start_time} et=${end_time}`
);
} }
this.time_loading = undefined; this.time_loading = undefined;
return result; return result;