Skip to content

Commit

Permalink
Merge pull request #762 from avelanarius/routing_node
Browse files Browse the repository at this point in the history
routing: remove Node struct
  • Loading branch information
piodul authored Jul 20, 2023
2 parents 2089cf0 + fb90490 commit 9a08488
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions scylla/src/routing.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
use rand::Rng;
use std::collections::HashMap;
use std::convert::TryFrom;
use std::net::SocketAddr;
use std::num::NonZeroU16;
use thiserror::Error;

#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Clone, Copy)]
pub struct Node {
// TODO: potentially a node may have multiple addresses, remember them?
// but we need an Ord instance on Node
pub addr: SocketAddr,
}

#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug)]
pub struct Token {
pub value: i64,
Expand Down

0 comments on commit 9a08488

Please sign in to comment.