File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 32
32
#include " proton/messaging_handler.hpp"
33
33
#include " proton/tracker.hpp"
34
34
#include " proton/transfer.hpp"
35
+ #include " types_internal.hpp"
35
36
36
37
#include " contexts.hpp"
37
38
#include " link_namer.hpp"
@@ -312,12 +313,8 @@ void transaction_impl::accept(delivery &t) {
312
313
313
314
void transaction_impl::update (tracker &t, uint64_t state) {
314
315
if (state) {
315
- proton::value data (pn_disposition_data (pn_delivery_local (unwrap (t))));
316
- std::list<proton::value> data_to_send;
317
- data_to_send.push_back (transaction_id);
318
- data = data_to_send;
319
-
320
- pn_delivery_update (unwrap (t), state);
316
+ auto disp = pn_transactional_disposition (pn_delivery_local (unwrap (t)));
317
+ pn_transactional_disposition_set_id (disp, pn_bytes (transaction_id));
321
318
}
322
319
}
323
320
You can’t perform that action at this time.
0 commit comments