Compare commits

..

2 Commits

Author SHA1 Message Date
a664c43887 update readme url 2025-05-07 10:16:54 +03:00
8cc4936f9a remove redundant code 2025-05-07 10:16:16 +03:00
2 changed files with 1 additions and 31 deletions

View File

@ -37,7 +37,7 @@ cargo build -r
Пример добавления в `Cargo.toml`: Пример добавления в `Cargo.toml`:
```toml ```toml
rust_mc_serv = { git = "https://github.com/GIKExe/rust_minecraft_server.git" } rust_mc_serv = { git = "https://github.com/GIKExe/rust_mc_serv.git" }
``` ```
Пример запуска сервера: Пример запуска сервера:

View File

@ -1,6 +1,5 @@
use std::{error::Error, fmt::Display, net::TcpListener, sync::Arc, thread, time::Duration}; use std::{error::Error, fmt::Display, net::TcpListener, sync::Arc, thread, time::Duration};
use config::Config;
use context::ServerContext; use context::ServerContext;
use ignore_result::Ignore; use ignore_result::Ignore;
use log::{error, info}; use log::{error, info};
@ -105,32 +104,3 @@ pub fn start_server(server: Arc<ServerContext>) {
}); });
} }
} }
// server start helper
// pub struct Server {
// context: Arc<ServerContext>,
// }
// impl Server {
// pub fn new(context: ServerContext) -> Self {
// Self {
// context: Arc::new(context),
// }
// }
// pub fn context(&self) -> &ServerContext {
// &self.context
// }
// pub fn start(&self) {
// start_server(self.context.clone());
// }
// }
// impl Default for Server {
// fn default() -> Self {
// Self {
// context: Arc::new(ServerContext::new(Arc::new(Config::default()))),
// }
// }
// }