Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

rodeos: Add support for stream_wapper_v1 with std::string route 📦 #10606

Merged
merged 1 commit into from
Aug 10, 2021

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Aug 9, 2021

Change Description

  • Add new stream_wrapper_v1 with std::string route which removes the restriction to use eosio::name for routing keys.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

ilog("logger stream [${data_size}] >> ${data}", ("data", data)("data_size", data.size()));
void publish(const std::vector<char>& data, const std::string& routing_key) override {
ilog("logger stream ${r}: [${data_size}] >> ${data}",
("r", routing_key)("data", data)("data_size", data.size()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order of "data" and "data_size" is reversed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The order doesn't matter.

Copy link
Contributor

@linhuang-blockone linhuang-blockone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious why the type of routes is changed from eosio::name to std::string?

@heifner
Copy link
Contributor Author

heifner commented Aug 10, 2021

Just curious why the type of routes is changed from eosio::name to std::string?

eosio::name is limited to 12 characters but routing keys in rabbitmq has no such restriction. This allows users to use much more reasonable sized routing keys.

@heifner heifner merged commit e0bada9 into develop-boxed Aug 10, 2021
@heifner heifner deleted the EPE-1175-rodeos-streaming-routing-key-str branch August 10, 2021 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants