chore: fix lint warnings across the board (#374)
This commit is contained in:
parent
972102aed8
commit
9200663c8d
12 changed files with 31 additions and 31 deletions
|
|
@ -5,7 +5,7 @@ use pallas::{
|
|||
miniprotocols::{
|
||||
chainsync,
|
||||
localstate::queries_v16::{self, Addr, Addrs},
|
||||
Point, PRE_PRODUCTION_MAGIC, PREVIEW_MAGIC
|
||||
Point, PRE_PRODUCTION_MAGIC,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -81,8 +81,8 @@ async fn do_chainsync(client: &mut NodeClient) {
|
|||
|
||||
// change the following to match the Cardano node socket in your local
|
||||
// environment
|
||||
#[cfg(unix)]
|
||||
const SOCKET_PATH: &str = "/tmp/node.socket";
|
||||
const PIPE_NAME: &str = "\\\\.\\pipe\\cardano-pallas";
|
||||
|
||||
#[cfg(unix)]
|
||||
#[tokio::main]
|
||||
|
|
@ -107,10 +107,14 @@ async fn main() {
|
|||
do_chainsync(&mut client).await;
|
||||
}
|
||||
|
||||
// change the following to match the Cardano node named-pipe in your local
|
||||
// environment
|
||||
#[cfg(target_family = "windows")]
|
||||
const PIPE_NAME: &str = "\\\\.\\pipe\\cardano-pallas";
|
||||
|
||||
#[cfg(target_family = "windows")]
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
|
||||
tracing::subscriber::set_global_default(
|
||||
tracing_subscriber::FmtSubscriber::builder()
|
||||
.with_max_level(tracing::Level::TRACE)
|
||||
|
|
@ -118,9 +122,9 @@ async fn main() {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
// we connect to the namedpipe of the local node. Make sure you have the right
|
||||
// we connect to the named-pipe of the local node. Make sure you have the right
|
||||
// path for your environment
|
||||
let mut client = NodeClient::connect(PIPE_NAME, PREVIEW_MAGIC)
|
||||
let mut client = NodeClient::connect(PIPE_NAME, PRE_PRODUCTION_MAGIC)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue