Skip to content

Commit

Permalink
remove env_logger; move console-subscribe to dev-dependencies; remove…
Browse files Browse the repository at this point in the history
… useless script
  • Loading branch information
b-yap committed Oct 8, 2024
1 parent 7b9ddda commit 6e3f7c3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 26 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions clients/stellar-relay-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ name = "stellar_relay_lib"
path = "src/lib.rs"

[dev-dependencies]
env_logger = "0.9.0"
ntest = "0.9.0"
serial_test = "0.9.0"
wallet = { path = "../wallet", features = ["testing-utils"] }
console-subscriber = { version = "0.3.0" }

[dependencies]
console-subscriber = { version = "0.3.0" }

hex = "0.4.3"
tracing = { version = "0.1", features = ["log"] }
Expand Down
5 changes: 4 additions & 1 deletion clients/stellar-relay-lib/examples/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use wallet::keys::get_source_secret_key_from_env;

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
console_subscriber::init();

let args: Vec<String> = std::env::args().collect();
Expand All @@ -28,6 +27,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
loop {
match overlay_connection.listen().await {
Ok(Some(msg)) => match msg {
StellarMessage::Hello(_) => {
tracing::info!("received Hello message");
},

StellarMessage::ScpMessage(msg) => {
let node_id = msg.statement.node_id.to_encoding();
let node_id = base64::encode(&node_id);
Expand Down
22 changes: 0 additions & 22 deletions scripts/cmd-list

This file was deleted.

0 comments on commit 6e3f7c3

Please sign in to comment.