The community channel is opening very slowly #20231 (#20236)

This commit is contained in:
flexsurfer 2024-05-30 17:46:36 +02:00 committed by GitHub
parent 0e76e88a81
commit 36be518174
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -252,7 +252,9 @@
(defn fetch-community (defn fetch-community
[{:keys [db]} [{:keys [community-id update-last-opened-at?]}]] [{:keys [db]} [{:keys [community-id update-last-opened-at?]}]]
(when (and community-id (not (get-in db [:communities/fetching-communities community-id]))) (when (and community-id
(not (get-in db [:communities community-id]))
(not (get-in db [:communities/fetching-communities community-id])))
{:db (assoc-in db [:communities/fetching-communities community-id] true) {:db (assoc-in db [:communities/fetching-communities community-id] true)
:json-rpc/call [{:method "wakuext_fetchCommunity" :json-rpc/call [{:method "wakuext_fetchCommunity"
:params [{:CommunityKey community-id :params [{:CommunityKey community-id