• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wboayue / rust-ibapi / #137
86%

Build:
DEFAULT BRANCH: main
Ran 25 May 2025 03:53AM UTC
Jobs 1
Files 33
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 May 2025 03:49AM UTC coverage: 82.599% (-0.06%) from 82.658%
#137

push

web-flow
Fix subscription cancellation for market data snapshots (#236) (#251)

* Fix subscription cancellation for market data snapshots

Fixes issue #236 where market data snapshot subscriptions would
attempt to cancel after receiving SnapshotEnd, causing TWS to
respond with error 300 "Can't find EId with tickerId".

Changes:
- Added snapshot_ended field to Subscription to track when snapshots complete
- Modified process_message to detect SnapshotEnd for TickTypes subscriptions
- Updated Drop implementation to skip cancellation if snapshot has ended
- Added 'static bounds to DataStream trait for type safety

The fix ensures that:
- Market data snapshots automatically clean up after SnapshotEnd
- Streaming subscriptions continue to work as before
- No spurious error messages are generated
- Backward compatibility is maintained

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* chore: cargo clippy

* refactor unsafe code

* refactor: snapshot_ended check

* chore: cleanup warnings

---------

Co-authored-by: Wil Boayue <wboayue@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>

8 of 13 new or added lines in 2 files covered. (61.54%)

2 existing lines in 1 file now uncovered.

4125 of 4994 relevant lines covered (82.6%)

16.66 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
64.09
-0.57% src/client.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
64.09
-0.57% src/client.rs
Jobs
ID Job ID Ran Files Coverage
1 #137.1 25 May 2025 03:53AM UTC 33
82.6
Source Files on build #137
  • Tree
  • List 33
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7eed1cdb on github
  • Prev Build on main
  • Next Build on main
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc