Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map: change visibility fields #134

Merged
merged 2 commits into from
Aug 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gossip_map/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clightningrpc_gossip_map"
version = "0.0.1-beta.2"
version = "0.0.1-beta.3"
edition = "2021"
description = "Crate that provides a plugin API to give the possibility to implement a plugin in Rust"
license = "CC0-1.0"
Expand Down
8 changes: 4 additions & 4 deletions gossip_map/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#[derive(Debug)]
pub struct GossipMap {
path: Option<String>,
version: u8,
stream: Option<BufReader<File>>,

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

field `stream` is never read

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

field `stream` is never read

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

field `stream` is never read

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

field `stream` is never read

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

field `stream` is never read

Check warning on line 31 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

field `stream` is never read
nodes: HashMap<GossipNodeId, GossipNode>,
channels: HashMap<ShortChannelId, GossipChannel>,
orphan_channel_updates: HashMap<ShortChannelId, ChannelUpdate>,
pub version: u8,
pub nodes: HashMap<GossipNodeId, GossipNode>,
pub channels: HashMap<ShortChannelId, GossipChannel>,
pub orphan_channel_updates: HashMap<ShortChannelId, ChannelUpdate>,
}

impl GossipMap {
Expand Down Expand Up @@ -75,12 +75,12 @@
}

/// add a node announcement message inside the gossip map
fn add_node_announcement(&mut self, node_announce: NodeAnnouncement) {

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

methods `add_node_announcement` and `add_channel_announcement` are never used

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

methods `add_node_announcement` and `add_channel_announcement` are never used

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

methods `add_node_announcement` and `add_channel_announcement` are never used

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

methods `add_node_announcement` and `add_channel_announcement` are never used

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

methods `add_node_announcement` and `add_channel_announcement` are never used

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

unused variable: `node_announce`

Check warning on line 78 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

methods `add_node_announcement` and `add_channel_announcement` are never used
unimplemented!()
}

/// add a channel announcement message inside the gossip map.
fn add_channel_announcement(&mut self, channel_announce: ChannelAnnouncement) {

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

unused variable: `channel_announce`

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (nightly)

unused variable: `channel_announce`

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

unused variable: `channel_announce`

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (beta)

unused variable: `channel_announce`

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

unused variable: `channel_announce`

Check warning on line 83 in gossip_map/src/lib.rs

View workflow job for this annotation

GitHub Actions / Build (stable)

unused variable: `channel_announce`
unimplemented!()
}

Expand Down
Loading