rqlite / gorqlite

A Go client for rqlite, the distributed database built on SQLite
MIT License
139 stars 34 forks source link

fix peer resolution #20

Closed elv-ccampbell closed 2 years ago

elv-ccampbell commented 2 years ago

This PR fixes peer resolution, but requires rqlite 6 and later. For rqlite <6, the peer http ports are not available in status, and the nodes API does not exist. In previous implementation, the leader http port was being given to each peer entry, so if configured with different http ports, they would not be reachable. This PR's implementation also omits unreachable, or otherwise unresponsive peers, as determined by raft.