load_profiles: add context for debugging

This is useful to see where the load_profiles request is coming from

We may need to switch to a central dispatch for profile loading, I
suspect there is a lot of redundancy between requests.
This commit is contained in:
William Casarin
2023-10-23 11:21:37 +08:00
parent 76508dbbfd
commit 4389cc2128
7 changed files with 12 additions and 12 deletions

View File

@@ -81,7 +81,7 @@ class SearchModel: ObservableObject {
if sub_id == self.sub_id {
let txn = NdbTxn(ndb: state.ndb)
load_profiles(profiles_subid: self.profiles_subid, relay_id: relay_id, load: .from_events(self.events.all_events), damus_state: state, txn: txn)
load_profiles(context: "search", profiles_subid: self.profiles_subid, relay_id: relay_id, load: .from_events(self.events.all_events), damus_state: state, txn: txn)
}
}
}