Skip to content

Commit b5360b1

Browse files
committed
Rename Config to ServerConfig
1 parent df14784 commit b5360b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/docker_run/api/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::thread;
99

1010

1111

12-
pub struct Config<C, H> {
12+
pub struct ServerConfig<C, H> {
1313
pub listen_addr: String,
1414
pub worker_threads: u16,
1515
pub handler_config: C,
@@ -29,7 +29,7 @@ impl Server {
2929
})
3030
}
3131

32-
pub fn start<C, H>(&self, config: Config<C, H>) -> Result<Workers, Error>
32+
pub fn start<C, H>(&self, config: ServerConfig<C, H>) -> Result<Workers, Error>
3333
where
3434
C: Send + Clone + 'static,
3535
H: Send + Copy + 'static,

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ fn start() -> Result<(), Error> {
7070
let server = api::Server::new(config.server.listen_addr_with_port())
7171
.map_err(Error::CreateServer)?;
7272

73-
let workers = server.start(api::Config{
73+
let workers = server.start(api::ServerConfig{
7474
listen_addr: config.server.listen_addr_with_port(),
7575
worker_threads: config.server.worker_threads,
7676
handler_config: config,

0 commit comments

Comments
 (0)