Skip to content

Commit a91c3a9

Browse files
authored
Update cpp-batching-upgrade.md
1 parent ee1dd1e commit a91c3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/cpp-batching-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ If you are using the [websocket JRPC API](websocket_api.md) to send updates to `
88
## C++ Bindings
99
If you are linking against the C++ bindings, you will need to make some changes to your code to support sending batched updates.
1010

11-
Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish.cpp) example has been updated to use this new approach.
11+
Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish_websocket.cpp) example has been updated to use this new approach.
1212

1313
**Important**: this is a breaking change for C++ publishers, so you will need to update your code as described above for `2.10.1` to work.

0 commit comments

Comments
 (0)