diff options
author | tom barrett <spalf0@gmail.com> | 2018-04-16 03:05:39 -0500 |
---|---|---|
committer | tom barrett <spalf0@gmail.com> | 2018-04-16 03:05:39 -0500 |
commit | 7da5495fc815c2cf255b03f100a5b800a5e5f0ff (patch) | |
tree | 7815a11941fe4f12f7420e0186a8d6483b8ac10d /src/bin | |
parent | 2940809bf50c2874487ba55efb17ba03c52dd9c2 (diff) |
-conformed connection to naming convention
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/server.rs b/src/bin/server.rs index 68e091e..1fad1d3 100644 --- a/src/bin/server.rs +++ b/src/bin/server.rs @@ -7,7 +7,7 @@ use std::collections::HashMap; use space::mass::Mass; use space::math::rand_name; -use space::connection::Connection; +use space::server::connection::ServerConnection; fn populate() -> HashMap<String, Mass> { let mut masses : HashMap<String, Mass> = HashMap::new(); @@ -28,7 +28,7 @@ fn main() { let mut connections = Vec::new(); for stream in listener.incoming() { match stream { - Ok(stream) => connections.push(Connection::new(stream, &mut masses)), + Ok(stream) => connections.push(ServerConnection::new(stream, &mut masses)), _ => { for i in 0..connections.len() { connections[i].process(&mut masses); |