Skip to content

Commit bcb5da7

Browse files
author
Anton Melnikov
committed
style(raft): fix typo (ConnectionPool)
1 parent 0826f5a commit bcb5da7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/raft/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::time::Duration;
77
use rand::random;
88

99
use bootstrap::{BoostrapController, BootstrapAction};
10-
use net::{get_local_addrs, ConnectionPoll};
10+
use net::{get_local_addrs, ConnectionPool};
1111

1212
use crate::error::Error;
1313
use crate::net_box::{Conn, ConnOptions, Options};
@@ -29,7 +29,7 @@ pub enum NodeState {
2929

3030
pub struct Node {
3131
bootstrap_ctrl: BoostrapController,
32-
connections: RefCell<ConnectionPoll>,
32+
connections: RefCell<ConnectionPool>,
3333
rpc_function: String,
3434
options: NodeOptions,
3535
}
@@ -72,7 +72,7 @@ impl Node {
7272

7373
Ok(Node {
7474
bootstrap_ctrl: BoostrapController::new(id, local_addrs, bootstrap_addrs_cfg),
75-
connections: RefCell::new(ConnectionPoll::new(options.connection_options.clone())),
75+
connections: RefCell::new(ConnectionPool::new(options.connection_options.clone())),
7676
rpc_function: rpc_function.to_string(),
7777
options,
7878
})

src/raft/net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use crate::error::Error;
1010
use crate::net_box::{Conn, ConnOptions};
1111

1212
#[derive(Default)]
13-
pub struct ConnectionPoll {
13+
pub struct ConnectionPool {
1414
options: ConnOptions,
1515
inner: HashMap<ConnectionId, Conn>,
1616
}
@@ -21,9 +21,9 @@ pub enum ConnectionId {
2121
Peer(u64),
2222
}
2323

24-
impl ConnectionPoll {
24+
impl ConnectionPool {
2525
pub fn new(options: ConnOptions) -> Self {
26-
ConnectionPoll {
26+
ConnectionPool {
2727
options,
2828
inner: HashMap::new(),
2929
}

0 commit comments

Comments
 (0)