Skip to content
Snippets Groups Projects
Commit e390275c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix #1433: upgrade dubp-wot to 0.11.1

parent b3af50d9
No related branches found
No related tags found
1 merge request!1408Fix/1433/distance rule different than 1 7
......@@ -51,6 +51,12 @@ dependencies = [
"serde",
]
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "blake3"
version = "0.3.8"
......@@ -198,11 +204,13 @@ dependencies = [
[[package]]
name = "dubp-wot"
version = "0.11.0"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0f76dd4b734d34be5613c470402ccdb21cb21b84ecd75acdc81cf80c618201a"
checksum = "59f62bdc1abf2da65794c9fd7fe46f7328834a97a2346048d46b0b6676302de0"
dependencies = [
"log",
"once_cell",
"parking_lot",
"rayon",
"serde",
]
......@@ -296,6 +304,15 @@ version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "js-sys"
version = "0.3.37"
......@@ -317,6 +334,15 @@ version = "0.2.131"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04c3b4822ccebfa39c02fc03d1534441b22ead323fa0f48bb7ddd8e6ba076a40"
[[package]]
name = "lock_api"
version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88943dd7ef4a2e5a4bfa2753aaab3013e34ce2533d1996fb18ef591e315e2b3b"
dependencies = [
"scopeguard",
]
[[package]]
name = "log"
version = "0.4.8"
......@@ -414,6 +440,31 @@ version = "1.13.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1"
[[package]]
name = "parking_lot"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb"
dependencies = [
"instant",
"lock_api",
"parking_lot_core",
]
[[package]]
name = "parking_lot_core"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa7a782938e745763fe6907fc6ba86946d72f49fe7e21de074e08128a99fb018"
dependencies = [
"cfg-if 1.0.0",
"instant",
"libc",
"redox_syscall",
"smallvec",
"winapi",
]
[[package]]
name = "proc-macro2"
version = "1.0.43"
......@@ -456,6 +507,15 @@ dependencies = [
"num_cpus",
]
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
]
[[package]]
name = "regex"
version = "1.3.7"
......
......@@ -18,6 +18,6 @@ neon-build = "0.10.0"
bincode = "1.2.1"
bs58 = "0.3.0"
dup-crypto = "0.58.0"
dubp-wot = "=0.11.0"
dubp-wot = "0.11.1"
flate2 = "1.0.14"
neon = "0.10.0"
{"active":"debug","targets":{"release":{"rustc":"","nodeVersion":null,"env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}},"debug":{"rustc":"rustc 1.63.0 (4b91a6ea7 2022-08-08)","nodeVersion":"v16.16.0","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null,"npm_config_node_engine":null,"npm_config_nodedir":null,"npm_config_node_gyp":null,"npm_config_platform":null}}}}
\ No newline at end of file
{"active":"debug","targets":{"release":{"rustc":"","nodeVersion":null,"env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null}},"debug":{"rustc":"rustc 1.63.0 (4b91a6ea7 2022-08-08)","nodeVersion":"v16.16.0","env":{"npm_config_target":null,"npm_config_arch":null,"npm_config_target_arch":null,"npm_config_disturl":null,"npm_config_runtime":null,"npm_config_build_from_source":null,"npm_config_devdir":null,"npm_config_node_engine":null,"npm_config_nodedir":null,"npm_config_node_gyp":"/Users/cgeek/.nvm/versions/node/v16.16.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js","npm_config_platform":null}}}}
\ No newline at end of file
......@@ -228,6 +228,7 @@ declare_types! {
match new_link_result {
NewLinkResult::Ok(count_target_received_certs) |
NewLinkResult::AlreadyExistingCertification(count_target_received_certs) |
NewLinkResult::AllCertificationsUsed(count_target_received_certs) =>
Ok(cx.number(count_target_received_certs as f64).upcast()),
NewLinkResult::SelfLinkingForbidden() => cx.throw_error( "self linking forbidden"),
......@@ -285,7 +286,7 @@ declare_types! {
RustyDistanceCalculator {}.compute_distance(wot, distance_params)
};
if let Some(distance_response) = distance_response_opt {
if let Ok(distance_response) = distance_response_opt {
Ok(cx.boolean(distance_response.outdistanced).upcast())
} else {
cx.throw_error(format!("node '{}' not exist.", distance_params.node.0))
......@@ -303,7 +304,7 @@ declare_types! {
RustyDistanceCalculator {}.compute_distance(wot, distance_params)
};
if let Some(distance_response) = distance_response_opt {
if let Ok(distance_response) = distance_response_opt {
distance_response_to_js_object(cx, distance_response)
} else {
cx.throw_error(format!("node '{}' not exist.", distance_params.node.0))
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment