Skip to content

Conversation

@elrafoon
Copy link

Hi,

thank you for this very nice crate!

I just bumped upon a minor problem - I need to batch the updates from OPC/UA server and push Vec of them into message queue.

If I understand it correctly, it's required to implement trait OnSubscriptionNotificationCore.

That's straightforward, but struct MonitoredItemMap referenced in fn on_subscription_notification is not public,
so it's impossible to implement the trait.

So please accept this tiny PR.

@einarmo
Copy link
Contributor

einarmo commented Oct 31, 2025

We warn on public methods missing docs, so you'll need to write a simple docstring for the get method, it looks like.

This is an oversight. Thanks for the PR!

@elrafoon elrafoon force-pushed the pub-MonitoredItemMap branch from c7097ae to 5fbc809 Compare January 1, 2026 11:45
@elrafoon
Copy link
Author

elrafoon commented Jan 1, 2026

I finally got back to this, and documented MonitoredItemMap::get

@codecov-commenter
Copy link

codecov-commenter commented Jan 2, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@0dd3a26). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #168   +/-   ##
=========================================
  Coverage          ?   82.87%           
=========================================
  Files             ?      628           
  Lines             ?   321873           
  Branches          ?   321873           
=========================================
  Hits              ?   266754           
  Misses            ?    53449           
  Partials          ?     1670           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@einarmo einarmo force-pushed the pub-MonitoredItemMap branch from 5fbc809 to f50e6b4 Compare January 2, 2026 12:56
@einarmo
Copy link
Contributor

einarmo commented Jan 2, 2026

Looks like you need to format the code, cargo fmt --all should do it.

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.

3 participants