diff --git a/Cargo.lock b/Cargo.lock index 53331cd73e..e0a112e2a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -917,6 +917,7 @@ dependencies = [ "http-body 0.1.0", "hyper", "hyper-rustls", + "indexmap", "itertools 0.8.2", "js-sys", "keys", @@ -1915,9 +1916,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.3.0" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b67e66362108efccd8ac053abafc8b7a8d86a37e6e48fc4f6f7485eb5e9e6a5" +checksum = "825343c4eef0b63f541f8903f395dc5beb362a979b5799a84062527ef1e37726" dependencies = [ "bytes 1.0.1", "fnv", @@ -1930,7 +1931,6 @@ dependencies = [ "tokio", "tokio-util", "tracing", - "tracing-futures", ] [[package]] @@ -2141,15 +2141,15 @@ dependencies = [ [[package]] name = "httparse" -version = "1.3.4" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" +checksum = "f3a87b616e37e93c22fb19bcd386f02f3af5ea98a25670ad0fce773de23c5e68" [[package]] name = "httpdate" -version = "0.3.2" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47" +checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" [[package]] name = "humantime" @@ -2168,9 +2168,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.5" +version = "0.14.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf09f61b52cfcf4c00de50df88ae423d6c02354e385a86341133b5338630ad1" +checksum = "0b61cf2d1aebcf6e6352c97b81dc2244ca29194be1b276f5d8ad5c6330fffb11" dependencies = [ "bytes 1.0.1", "futures-channel", @@ -2182,7 +2182,7 @@ dependencies = [ "httparse", "httpdate", "itoa", - "pin-project 1.0.7", + "pin-project-lite 0.2.6", "socket2 0.4.0", "tokio", "tower-service", @@ -2304,11 +2304,12 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.4.0" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c398b2b113b55809ceb9ee3e753fcbac793f1956663f3c36549c1346015c2afe" +checksum = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2" dependencies = [ "autocfg 1.0.0", + "hashbrown 0.9.1", ] [[package]] @@ -5671,16 +5672,6 @@ dependencies = [ "lazy_static", ] -[[package]] -name = "tracing-futures" -version = "0.2.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2" -dependencies = [ - "pin-project 1.0.7", - "tracing", -] - [[package]] name = "traitobject" version = "0.1.0" diff --git a/Cargo.toml b/Cargo.toml index bf9451c102..e34c5b0fce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -118,7 +118,7 @@ web-sys = { version = "0.3.4", features = ["console"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] dirs = { version = "1" } -hyper = { version = "0.14" } +hyper = { version = "0.14.11", features = ["client", "http2", "server", "tcp"] } tokio = { version = "1.7", features = ["io-util", "rt-multi-thread", "net"] } [dev-dependencies] diff --git a/mm2src/common/Cargo.toml b/mm2src/common/Cargo.toml index 965365f4b5..16e972e7ef 100644 --- a/mm2src/common/Cargo.toml +++ b/mm2src/common/Cargo.toml @@ -56,6 +56,7 @@ winapi = "0.3" chrono = { version = "0.4", features = ["wasmbind"] } getrandom = { version = "0.2", features = ["js"] } # see https://docs.rs/getrandom/0.2.0/getrandom/#webassembly-support gstuff = { version = "0.7", features = ["nightly"] } +indexmap = "=1.6.0" # see https://github.com/KomodoPlatform/atomicDEX-API/issues/1042 js-sys = "0.3.27" serde_bencode = "0.2" wasm-bindgen = { version = "0.2.50", features = ["serde-serialize", "nightly"] } @@ -69,7 +70,7 @@ chrono = "0.4" crossterm = "0.20" gstuff = { version = "0.7", features = ["crossterm", "nightly"] } hdrhistogram = { version = "7.0", default-features = false, features = ["sync"] } -hyper = { version = "0.14", features = ["client", "http2", "server", "tcp"] } +hyper = { version = "0.14.11", features = ["client", "http2", "server", "tcp"] } # using webpki-tokio to avoid rejecting valid certificates # got "invalid certificate: UnknownIssuer" for https://ropsten.infura.io on iOS using default-features hyper-rustls = { version = "0.22", default-features = false, features = ["webpki-tokio"] } diff --git a/mm2src/lp_ordermatch/best_orders.rs b/mm2src/lp_ordermatch/best_orders.rs index ad5f864267..d12b596237 100644 --- a/mm2src/lp_ordermatch/best_orders.rs +++ b/mm2src/lp_ordermatch/best_orders.rs @@ -56,7 +56,7 @@ pub async fn process_best_orders_p2p_request( let orders = match orderbook.ordered.get(&pair) { Some(orders) => orders, None => { - log::warn!("No orders for pair {:?}", pair); + log::debug!("No orders for pair {:?}", pair); continue; }, }; @@ -94,7 +94,7 @@ pub async fn process_best_orders_p2p_request( } }, None => { - log::warn!("No order with uuid {:?}", ordered.uuid); + log::debug!("No order with uuid {:?}", ordered.uuid); continue; }, };