apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.97k stars 314 forks source link

refactor(FQDN): Simplify function generate_node_list() #1973

Closed acelyc111 closed 5 months ago

acelyc111 commented 5 months ago

Simplify the 2 forms of generate_node_list(...), they are widely used in tests, they generate a std::vector with std::pair<host_port, rpc_address> before, this patch simplify the code to generate std::vector with host_host elements only.