File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use std::time::Duration;
7
7
use rand:: random;
8
8
9
9
use bootstrap:: { BoostrapController , BootstrapAction } ;
10
- use net:: { get_local_addrs, ConnectionPoll } ;
10
+ use net:: { get_local_addrs, ConnectionPool } ;
11
11
12
12
use crate :: error:: Error ;
13
13
use crate :: net_box:: { Conn , ConnOptions , Options } ;
@@ -29,7 +29,7 @@ pub enum NodeState {
29
29
30
30
pub struct Node {
31
31
bootstrap_ctrl : BoostrapController ,
32
- connections : RefCell < ConnectionPoll > ,
32
+ connections : RefCell < ConnectionPool > ,
33
33
rpc_function : String ,
34
34
options : NodeOptions ,
35
35
}
@@ -72,7 +72,7 @@ impl Node {
72
72
73
73
Ok ( Node {
74
74
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 ( ) ) ) ,
76
76
rpc_function : rpc_function. to_string ( ) ,
77
77
options,
78
78
} )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ use crate::error::Error;
10
10
use crate :: net_box:: { Conn , ConnOptions } ;
11
11
12
12
#[ derive( Default ) ]
13
- pub struct ConnectionPoll {
13
+ pub struct ConnectionPool {
14
14
options : ConnOptions ,
15
15
inner : HashMap < ConnectionId , Conn > ,
16
16
}
@@ -21,9 +21,9 @@ pub enum ConnectionId {
21
21
Peer ( u64 ) ,
22
22
}
23
23
24
- impl ConnectionPoll {
24
+ impl ConnectionPool {
25
25
pub fn new ( options : ConnOptions ) -> Self {
26
- ConnectionPoll {
26
+ ConnectionPool {
27
27
options,
28
28
inner : HashMap :: new ( ) ,
29
29
}
You can’t perform that action at this time.
0 commit comments