-
Notifications
You must be signed in to change notification settings - Fork 944
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(examples) Add example: SA with Message API preview #4982
base: main
Are you sure you want to change the base?
Conversation
rs = sa_aggregator.aggregate( | ||
[ | ||
driver.create_message( | ||
content=RecordSet(), # Empty message | ||
message_type=MessageType.QUERY, | ||
dst_node_id=nid, | ||
group_id="", | ||
) | ||
for nid in nids | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rs = sa_aggregator.aggregate( | |
[ | |
driver.create_message( | |
content=RecordSet(), # Empty message | |
message_type=MessageType.QUERY, | |
dst_node_id=nid, | |
group_id="", | |
) | |
for nid in nids | |
] | |
) | |
record = RecordSet() # Empty message | |
rs = sa_aggregator.aggregate( | |
[ | |
driver.create_message( | |
content=record | |
message_type=MessageType.QUERY, | |
dst_node_id=nid, | |
group_id="", | |
) | |
for nid in nids | |
] | |
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's say we want to put the same content in all messages. It would normal to define first the RecordSet
and then pass it to the create_message()
method. however, this wont' work with SA. Triggering errors in the form "cryptography.fernet.InvalidToken"
No description provided.