0.9.5->0.9.6

This commit is contained in:
dr-frmr 2024-10-11 15:41:17 -04:00
parent 6148d2df07
commit b2a6a93fec
No known key found for this signature in database
5 changed files with 12 additions and 8 deletions

6
Cargo.lock generated
View File

@ -3639,7 +3639,7 @@ dependencies = [
[[package]]
name = "kinode"
version = "0.9.5"
version = "0.9.6"
dependencies = [
"aes-gcm",
"alloy 0.2.1",
@ -3701,7 +3701,7 @@ dependencies = [
[[package]]
name = "kinode_lib"
version = "0.9.5"
version = "0.9.6"
dependencies = [
"lib",
]
@ -3824,7 +3824,7 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67"
[[package]]
name = "lib"
version = "0.9.5"
version = "0.9.6"
dependencies = [
"alloy 0.2.1",
"kit",

View File

@ -1,7 +1,7 @@
[package]
name = "kinode_lib"
authors = ["KinodeDAO"]
version = "0.9.5"
version = "0.9.6"
edition = "2021"
description = "A general-purpose sovereign cloud computing platform"
homepage = "https://kinode.org"

View File

@ -1,7 +1,7 @@
[package]
name = "kinode"
authors = ["KinodeDAO"]
version = "0.9.5"
version = "0.9.6"
edition = "2021"
description = "A general-purpose sovereign cloud computing platform"
homepage = "https://kinode.org"

View File

@ -343,11 +343,15 @@ async fn handle_fdman(km: &KernelMessage, request_body: &[u8], data: &mut NetDat
data.fds_limit = fds_limit;
data.peers.set_max_peers(fds_limit);
// TODO combine with max_peers check
data.max_passthroughs = fds_limit;
// only update passthrough limit if it's higher than the new fds limit
// most nodes have passthroughs disabled, meaning this will keep it at 0
if data.max_passthroughs > fds_limit {
data.max_passthroughs = fds_limit;
}
// TODO cull passthroughs too
if data.peers.peers().len() >= data.fds_limit as usize {
let diff = data.peers.peers().len() - data.fds_limit as usize;
println!("net: culling {diff} peers\r\n");
println!("net: culling {diff} peer(s)\r\n");
data.peers.cull(diff).await;
}
}

View File

@ -1,7 +1,7 @@
[package]
name = "lib"
authors = ["KinodeDAO"]
version = "0.9.5"
version = "0.9.6"
edition = "2021"
description = "A general-purpose sovereign cloud computing platform"
homepage = "https://kinode.org"