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:
@@ -121,7 +121,7 @@ class ThreadModel: ObservableObject {
|
||||
|
||||
if sub_id == self.base_subid {
|
||||
let txn = NdbTxn(ndb: damus_state.ndb)
|
||||
load_profiles(profiles_subid: self.profiles_subid, relay_id: relay_id, load: .from_events(Array(event_map)), damus_state: damus_state, txn: txn)
|
||||
load_profiles(context: "thread", profiles_subid: self.profiles_subid, relay_id: relay_id, load: .from_events(Array(event_map)), damus_state: damus_state, txn: txn)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user