Skip to content

Commit

Permalink
Merge pull request #493 from scylladb/rpc_address_instead_of_peer
Browse files Browse the repository at this point in the history
topology: use rpc_address instead of peer when fetching addrs
  • Loading branch information
piodul authored Aug 3, 2022
2 parents 65e4212 + b044408 commit 7f10b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scylla/src/transport/topology.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ async fn query_metadata(
}

async fn query_peers(conn: &Connection, connect_port: u16) -> Result<Vec<Peer>, QueryError> {
let mut peers_query = Query::new("select peer, data_center, rack, tokens from system.peers");
let mut peers_query =
Query::new("select rpc_address, data_center, rack, tokens from system.peers");
peers_query.set_page_size(1024);
let peers_query_future = conn.query_all(&peers_query, &[]);

Expand Down

0 comments on commit 7f10b98

Please sign in to comment.