warning: unused variable: `cf_metadata`
--> src/raft/generic2/rocksdb_storage.rs:465:13
|
465 | let cf_metadata = self.db.cf_handle(CF_METADATA)
| ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cf_metadata`
|
= note: `#[warn(unused_variables)]` on by default
warning: unused variable: `existing_voters`
--> src/management/config.rs:87:9
|
87 | existing_voters: &[u64],
| ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_existing_voters`
warning: constant `KEY_SNAPSHOT_METADATA` is never used
--> src/raft/generic2/rocksdb_storage.rs:41:7
|
41 | const KEY_SNAPSHOT_METADATA: &[u8] = b"snapshot_metadata";
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: method `store_entry` is never used
--> src/raft/generic2/rocksdb_storage.rs:204:8
|
60 | impl RocksDBStorage {
| ------------------- method in this implementation
...
204 | fn store_entry(&self, entry: &Entry) -> Result<()> {
| ^^^^^^^^^^^
warning: field `peer_addresses` is never read
--> src/grpc2/server.rs:48:5
|
32 | pub struct GrpcServer {
| ---------- field in this struct
...
48 | peer_addresses: Arc<Mutex<HashMap<u64, String>>>,
| ^^^^^^^^^^^^^^
|
= note: `GrpcServer` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
warning: field `node` is never read
--> src/full_node/mod.rs:37:5
|
32 | pub struct FullNode {
| -------- field in this struct
...
37 | node: Arc<Mutex<RaftNode<crate::management::ManagementStateMachine>>>,
| ^^^^
warning: unused `Result` that must be used
--> src/raft/generic2/node.rs:807:13
|
807 | store.wl().set_hardstate(hs.clone());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this `Result` may be an `Err` variant, which should be handled
= note: `#[warn(unused_must_use)]` on by default
help: use `let _ = ...` to ignore the resulting value
|
807 | let _ = store.wl().set_hardstate(hs.clone());
| +++++++
warning: `raftoral` (lib) generated 7 warnings
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s
Running `target/debug/raftoral --listen '127.0.0.1:7001' --node-id 1 --bootstrap --storage-path ./raftoral_node1_data`