Skip to content

Commit

Permalink
Server::build() method (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 authored Mar 24, 2024
1 parent baabcff commit 20a53c3
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 137 deletions.
2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"ntex",
"ntex-bytes",
"ntex-codec",
"ntex-connect",
"ntex-io",
"ntex-http",
"ntex-router",
Expand All @@ -24,7 +23,6 @@ members = [
ntex = { path = "ntex" }
ntex-bytes = { path = "ntex-bytes" }
ntex-codec = { path = "ntex-codec" }
ntex-connect = { path = "ntex-connect" }
ntex-io = { path = "ntex-io" }
ntex-net = { path = "ntex-net" }
ntex-http = { path = "ntex-http" }
Expand Down
59 changes: 0 additions & 59 deletions ntex-connect/CHANGES.md

This file was deleted.

48 changes: 0 additions & 48 deletions ntex-connect/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion ntex-connect/LICENSE-APACHE

This file was deleted.

1 change: 0 additions & 1 deletion ntex-connect/LICENSE-MIT

This file was deleted.

24 changes: 0 additions & 24 deletions ntex-connect/src/lib.rs

This file was deleted.

6 changes: 5 additions & 1 deletion ntex-server/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## [0.1.0] - 2024-03-24
## [1.0.1] - 2024-03-24

* Re-add Server::build() method

## [1.0.0] - 2024-03-24

* Release
2 changes: 1 addition & 1 deletion ntex-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ntex-server"
version = "1.0.0"
version = "1.0.1"
authors = ["ntex contributors <[email protected]>"]
description = "Server for ntex framework"
keywords = ["network", "framework", "async", "futures"]
Expand Down
5 changes: 5 additions & 0 deletions ntex-server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ impl<T> Server<T> {
}
}

/// Start streaming server building process
pub fn build() -> crate::net::ServerBuilder {
crate::net::ServerBuilder::default()
}

pub(crate) fn signal(&self, sig: Signal) {
let _ = self.cmd.try_send(ServerCommand::Signal(sig));
}
Expand Down

0 comments on commit 20a53c3

Please sign in to comment.