Skip to content

Commit

Permalink
Ticket1392 internal attrs (#1394)
Browse files Browse the repository at this point in the history
* internal-only router attributes

* hook for router to add custom information

* use cpy 3.8 for running flake (see comments here #1393 (comment))

Co-authored-by: meejah <meejah@meejah.ca>
  • Loading branch information
oberstet and meejah committed Jun 17, 2020
1 parent 2bd8255 commit b019c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -39,7 +39,7 @@ matrix:
#
# Flake8
#
- python: "3.5"
- python: "3.8"
env:
- TOX_ENV=flake8

Expand Down
5 changes: 5 additions & 0 deletions autobahn/wamp/message.py
Expand Up @@ -378,6 +378,8 @@ class Message(object):
'_correlation_uri',
'_correlation_is_anchor',
'_correlation_is_last',

'_router_internal',
)

def __init__(self, from_fbs=None):
Expand All @@ -393,6 +395,9 @@ def __init__(self, from_fbs=None):
self._correlation_is_anchor = None
self._correlation_is_last = None

# non-serialized 'internal' attributes (used by Crossbar router)
self._router_internal = None

@property
def correlation_id(self):
return self._correlation_id
Expand Down

0 comments on commit b019c59

Please sign in to comment.