Skip to content

scanner: use the request builder for scanner_subscription - #960

Open
tradatious wants to merge 1 commit into
wboayue:mainfrom
tradatious:scanner-request-builders
Open

tradatious wants to merge 1 commit into
wboayue:mainfrom
tradatious:scanner-request-builders

Conversation

@tradatious

Copy link
Copy Markdown
Contributor

Description

scanner_subscription on both clients minted a request id, sent the request and assembled the
Subscription by hand. It now goes through request() and send(), as the news subscriptions do
since #947. The version checks ahead of the request are unchanged.

No behaviour change: the builder makes the same message-bus call with the same request id and the
same decoder context.

Testing

The existing scanner tests cover it: test_scanner_subscription on both clients asserts the
request and cancel bytes, and the async test_scanner_subscription_drop_sends_cancel covers the
cancel on drop; they pass unchanged. cargo fmt --check; clippy, rustdoc (-D warnings) and cargo
test on all three feature configurations; cargo build --examples both ways; integration crates
built.

Breaking changes

No. Crate-internal.

Both clients now use request() and builder.send instead of assembling
the Subscription by hand, as market data and display groups do. No
behaviour change.
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