Revert "chore: align with logos-delivery"

This reverts commit ef5252b8174106056578b230dd51641b0c7a4261.
This commit is contained in:
darshankabariya 2026-03-02 16:51:32 +05:30
parent 713c191d80
commit 18e5d89f7a
No known key found for this signature in database
GPG Key ID: 9A92CCD9899F0D22
4 changed files with 1 additions and 25 deletions

View File

@ -46,9 +46,6 @@ async fn main() -> Result<(), Error> {
WakuEvent::ConnectionChange(_evt) => {
// dbg!("Conn change evt", evt);
}
WakuEvent::NodeHealthChange(_evt) => {
// dbg!("Node health change evt", evt);
}
WakuEvent::Unrecognized(err) => panic!("Unrecognized waku event: {:?}", err),
_ => panic!("event case not expected"),
};
@ -78,9 +75,6 @@ async fn main() -> Result<(), Error> {
WakuEvent::ConnectionChange(_evt) => {
// dbg!("Conn change evt", evt);
}
WakuEvent::NodeHealthChange(_evt) => {
// dbg!("Node health change evt", evt);
}
WakuEvent::Unrecognized(err) => panic!("Unrecognized waku event: {:?}", err),
_ => panic!("event case not expected"),
};

View File

@ -28,7 +28,7 @@ pub struct WakuNodeConfig {
#[default(Some(true))]
pub relay: Option<bool>,
pub relay_topics: Vec<String>,
#[default(vec![0])]
#[default(vec![1])]
pub shards: Vec<usize>,
#[serde(skip_serializing_if = "Option::is_none")]
pub max_message_size: Option<String>,

View File

@ -27,9 +27,6 @@ pub enum WakuEvent {
#[serde(rename = "connection_change")]
ConnectionChange(ConnectionChangeEvent),
#[serde(rename = "node_health_change")]
NodeHealthChange(NodeHealthChangeEvent),
Unrecognized(serde_json::Value),
}
@ -65,14 +62,6 @@ pub struct ConnectionChangeEvent {
pub peer_event: String,
}
/// Type of `event` field for a `node health change` event
#[derive(Serialize, Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
pub struct NodeHealthChangeEvent {
/// The node connection status: Disconnected, PartiallyConnected, or Connected
pub status: String,
}
#[cfg(test)]
mod tests {
use crate::WakuEvent;

View File

@ -100,13 +100,6 @@ fn generate_bindgen_code(project_dir: &Path) {
println!("cargo:rustc-link-lib=dl");
println!("cargo:rustc-link-lib=m");
// libwaku.a bundles C++ objects (nim-lsquic / BoringSSL); link the C++ runtime.
if cfg!(target_os = "macos") {
println!("cargo:rustc-link-lib=c++");
} else {
println!("cargo:rustc-link-lib=stdc++");
}
println!(
"cargo:rustc-link-search=native={}",
nwaku_path