Skip to content

Make bridgeInfoState configuration reloadable - #1681

Merged
Half-Shot merged 6 commits into
matrix-org:developfrom
progval:reload-bridgeInfoState
Apr 26, 2023
Merged

Make bridgeInfoState configuration reloadable#1681
Half-Shot merged 6 commits into
matrix-org:developfrom
progval:reload-bridgeInfoState

Conversation

@progval

@progval progval commented Mar 11, 2023

Copy link
Copy Markdown
Contributor

This will be useful for tests in #1683

This will be useful for tests
@progval
progval requested a review from a team as a code owner March 11, 2023 19:57
@progval

progval commented Mar 11, 2023

Copy link
Copy Markdown
Contributor Author

Signed-off-by: Valentin Lorentz <progval plus matrixsignoff at progval dot net>

Comment thread src/bridge/IrcBridge.ts Outdated
Comment thread src/bridge/IrcBridge.ts Outdated
});
if (config.ircService.bridgeInfoState.initial) {
const mappings = await this.dataStore.getAllChannelMappings();
this.bridgeStateSyncer.initialSync(mappings).then(() => {

Copy link
Copy Markdown
Contributor

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.

Comment thread src/bridge/IrcBridge.ts

@Half-Shot Half-Shot left a comment

Copy link
Copy Markdown
Contributor

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.

@Half-Shot
Half-Shot merged commit dc5141a into matrix-org:develop Apr 26, 2023
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.

2 participants