Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce UpdateChannelsTeam() calls #493

Merged
merged 1 commit into from
Nov 6, 2022

Conversation

hloeung
Copy link
Collaborator

@hloeung hloeung commented Nov 5, 2022

We only need to call this for when channels and user changes. This fixes #492.

@hloeung hloeung force-pushed the reduce-update-channel-teams branch 2 times, most recently from 2947668 to 8356694 Compare November 5, 2022 23:25
@hloeung hloeung marked this pull request as ready for review November 5, 2022 23:37
@hloeung hloeung force-pushed the reduce-update-channel-teams branch 7 times, most recently from 7422115 to a41f165 Compare November 6, 2022 07:30
We only need to call this for when channels and user changes. This
fixes 42wim#492.
@hloeung
Copy link
Collaborator Author

hloeung commented Nov 6, 2022

If we update channels cache on user removal, we get this:

ERRO[2022-11-06T07:42:18Z] didn't find channel uw577mmmgfbtjg9i6bz9wk97or (#matterircd): channel not found  module=matterircd

Removing it seems to silence this so I'm going with that.

@hloeung hloeung force-pushed the reduce-update-channel-teams branch from a41f165 to f84bf6f Compare November 6, 2022 09:32
@42wim
Copy link
Owner

42wim commented Nov 6, 2022

LGTM 👍

@42wim 42wim added this to the 0.26.1 milestone Nov 6, 2022
@42wim 42wim merged commit 66cc81e into 42wim:master Nov 6, 2022
@hloeung hloeung deleted the reduce-update-channel-teams branch November 6, 2022 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce frequency of UpdateChannelsTeam() calls
2 participants