Skip to content

utility-meter: wait for the configured broker under ebus-service-discovery 0.5.0 - #105

Merged
dcj merged 1 commit into
mainfrom
dcj/utility-meter-discovery-0.5
Oct 9, 2026
Merged

dcj merged 1 commit into
mainfrom
dcj/utility-meter-discovery-0.5

Conversation

@dcj

@dcj dcj commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

utility-meter --discover with a host in the broker config now uses only a discovered broker that is that host, and keeps browsing until it is heard or --discover-timeout ends, then falls back to the config's host. Under ebus-service-discovery 0.5.0 the old loop fell back as soon as it heard any other broker. With no host, the first ranked broker is used, as before.

The mdns extra's floor rises to ebus-service-discovery>=0.5.0 (for match_configured()), and examples/README.md and the unreleased CHANGELOG entries now describe this.

Checked with a stubbed browse: configured broker heard -> it is used; configured broker absent -> discovery returns nothing and the meter falls back to the config's host; no host -> the first broker found. 873 tests pass; ruff check and format pass, including the extension-less example.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T32pvgqCzp1qCz7K5gS9Wm

…overy 0.5.0

0.5.0's discovery-with-fallback returns the configured broker when the
broker it hears is a different one, so the discovery loop fell back on the
first browse that heard any broker. Use match_configured() and keep
browsing until the configured broker is heard or --discover-timeout ends.
Raise the mdns extra's floor to 0.5.0 and correct the README and
CHANGELOG description.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T32pvgqCzp1qCz7K5gS9Wm
@dcj
dcj merged commit 18dec45 into main Oct 9, 2026
5 checks passed
@dcj
dcj deleted the dcj/utility-meter-discovery-0.5 branch October 9, 2026 03:36
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.

1 participant