Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Rename Acceptor::create to new
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed May 8, 2014
1 parent ca6ca4b commit 9c76141
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/rust/game-service/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Network {
Err(error) => fail!("Error initializing epoll: {}", error)
};

let acceptor = match Acceptor::create(port) {
let acceptor = match Acceptor::new(port) {
Ok(acceptor) => acceptor,
Err(error) => fail!("Error creating acceptor: {}", error)
};
Expand Down
2 changes: 1 addition & 1 deletion source/rust/libcommon/net/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Acceptor {
}

impl Acceptor {
pub fn create(port: &str) -> IoResult<Acceptor> {
pub fn new(port: &str) -> IoResult<Acceptor> {
match init_socket(port) {
Ok(fd) =>
Ok(Acceptor {
Expand Down

0 comments on commit 9c76141

Please sign in to comment.