Open xiaolin310 opened 10 months ago
@PFZheng
It would be really useful for braft to support hostname/dns for PeerId as it will allow it to be used on Kubernetes that dynamically assigns IPs.
looks fine! but it's complex for me, I think you should replace brpc::Init(server_and_port, nullptr)
with brpc::Init(service, "rr", nullptr)
,because the brpc::Init(service, "rr", nullptr)
can compatible with brpc::Init(service_and_port, nullptr)
.
As an implement of Issue https://github.com/baidu/braft/issues/18