Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Early return dashboard event handlers if network isn't dashboard #5708

Merged
merged 1 commit into from
Nov 16, 2022

Conversation

cliffoo
Copy link
Contributor

@cliffoo cliffoo commented Nov 16, 2022

So @cds-amal discovered that sometimes event handlers for dashboard are run even if dashboard isn't the targeted network, causing a failed request to the message bus on every such occasion. The fix is to check that the current network is in fact dashboard, then proceed with the event handler logic.

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A quick question, @cliffoo.

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks, @cliffoo

@cds-amal cds-amal merged commit 76acaa0 into develop Nov 16, 2022
@cds-amal cds-amal deleted the picky-dash-event-handlers branch November 16, 2022 18:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants