-
Notifications
You must be signed in to change notification settings - Fork 155
Make bridgeInfoState configuration reloadable #1681
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
Conversation
This will be useful for tests
|
Signed-off-by: Valentin Lorentz <progval plus matrixsignoff at progval dot net> |
src/bridge/IrcBridge.ts
Outdated
| }); | ||
| if (config.ircService.bridgeInfoState.initial) { | ||
| const mappings = await this.dataStore.getAllChannelMappings(); | ||
| this.bridgeStateSyncer.initialSync(mappings).then(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is a subtle-y expensive operation that might be a bit surprising on reload. I think if the config hasn't changed, we shouldn't attempt a resync.
I'm slightly more open to a resync if initial has changed.
Co-authored-by: Will Hunt <[email protected]>
Half-Shot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will merge in a bit.
This will be useful for tests in #1683