From d521e68f9b5fe9dc042b0aceabcab7d393f866d9 Mon Sep 17 00:00:00 2001 From: bexan Date: Thu, 25 Jul 2024 21:07:05 +0200 Subject: [PATCH] fix(solis): auth solis --- Cargo.lock | 7 +++++++ bin/solis/Cargo.toml | 1 + bin/solis/src/args.rs | 2 +- bin/solis/src/main.rs | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 9f0bcd44a0..ace78f9245 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3863,6 +3863,12 @@ dependencies = [ "serde_json", ] +[[package]] +name = "dotenv" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77c90badedccf4105eca100756a0b1289e191f6fcbdadd3cee1d2f614f97da8f" + [[package]] name = "dotenvy" version = "0.15.7" @@ -11403,6 +11409,7 @@ dependencies = [ "common", "console", "dojo-metrics", + "dotenv", "katana-core", "katana-executor", "katana-primitives", diff --git a/bin/solis/Cargo.toml b/bin/solis/Cargo.toml index 5b8debb1c2..0a0c5a07d9 100644 --- a/bin/solis/Cargo.toml +++ b/bin/solis/Cargo.toml @@ -19,6 +19,7 @@ clap_complete.workspace = true common.workspace = true console.workspace = true dojo-metrics.workspace = true +dotenv = "0.15.0" katana-core.workspace = true katana-executor.workspace = true katana-primitives.workspace = true diff --git a/bin/solis/src/args.rs b/bin/solis/src/args.rs index f2fb8b6b01..9fe912a31d 100644 --- a/bin/solis/src/args.rs +++ b/bin/solis/src/args.rs @@ -9,7 +9,7 @@ //! and leak detection functionality. See [jemalloc's opt.prof](https://jemalloc.net/jemalloc.3.html#opt.prof) //! documentation for usage details. This is **not recommended on Windows**. See [here](https://rust-lang.github.io/rfcs/1974-global-allocators.html#jemalloc) //! for more info. - +use std::env; use std::net::SocketAddr; use std::path::PathBuf; diff --git a/bin/solis/src/main.rs b/bin/solis/src/main.rs index ce806b1e34..14fca64404 100644 --- a/bin/solis/src/main.rs +++ b/bin/solis/src/main.rs @@ -43,6 +43,8 @@ pub(crate) const LOG_TARGET: &str = "katana::cli"; #[tokio::main] async fn main() -> Result<(), Box> { + dotenv::dotenv().ok(); + let args = KatanaArgs::parse(); args.init_logging()?;