Skip to content

Commit

Permalink
fix forwarding of transaction_hash in CallDetails and EventDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
oberstet committed Feb 13, 2022
1 parent 719898d commit bc98e4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autobahn/wamp/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ def _error(e):
invoke_kwargs = msg.kwargs if msg.kwargs else dict()

if handler.details_arg:
invoke_kwargs[handler.details_arg] = types.EventDetails(subscription, msg.publication, publisher=msg.publisher, publisher_authid=msg.publisher_authid, publisher_authrole=msg.publisher_authrole, topic=topic, retained=msg.retained, enc_algo=msg.enc_algo, forward_for=msg.forward_for)
invoke_kwargs[handler.details_arg] = types.EventDetails(subscription, msg.publication, publisher=msg.publisher, publisher_authid=msg.publisher_authid, publisher_authrole=msg.publisher_authrole, topic=topic, transaction_hash=msg.transaction_hash, retained=msg.retained, enc_algo=msg.enc_algo, forward_for=msg.forward_for)

# FIXME: https://github.com/crossbario/autobahn-python/issues/764
def _success(_):
Expand Down Expand Up @@ -1020,6 +1020,7 @@ def progress(*args, **kwargs):
caller_authid=msg.caller_authid,
caller_authrole=msg.caller_authrole,
procedure=proc,
transaction_hash=msg.transaction_hash,
enc_algo=msg.enc_algo)

on_reply = txaio.as_future(endpoint.fn, *invoke_args, **invoke_kwargs)
Expand Down

0 comments on commit bc98e4e

Please sign in to comment.