Skip to content

Commit

Permalink
use shared ca/cert/key, reduce memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Apr 18, 2022
1 parent ca90f4d commit edc6ee1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "realm"
version = "2.0.1"
version = "2.0.3"
authors = ["zhboner <[email protected]>"]
edition = "2021"

Expand Down Expand Up @@ -32,7 +32,8 @@ pin-project = "1"
lazy_static = "1"

# transport
kaminari = { version = "0.4.2", optional = true }
kaminari = { version = "0.5.7", optional = true }


# tfo
tokio-tfo = { git = "https://github.com/zephyrchien/tokio-tfo", branch = "main", version = "0.1.9", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/conf/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ impl EndpointConf {
) {
None
} else {
let ac = MixAccept::new(MixServerConf {
let ac = MixAccept::new_shared(MixServerConf {
ws: listen_ws,
tls: listen_tls,
});
let cc = MixConnect::new(MixClientConf {
let cc = MixConnect::new_shared(MixClientConf {
ws: remote_ws,
tls: remote_tls,
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pub mod conf;
pub mod utils;
pub mod relay;

pub const VERSION: &str = "2.0.1";
pub const VERSION: &str = "2.0.3";
pub const ENV_CONFIG: &str = "REALM_CONF";

0 comments on commit edc6ee1

Please sign in to comment.