diff --git a/frameworks/Rust/hyperlane/src/db.rs b/frameworks/Rust/hyperlane/src/db.rs index 435ad3f9c79..eb7c57b779e 100644 --- a/frameworks/Rust/hyperlane/src/db.rs +++ b/frameworks/Rust/hyperlane/src/db.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub fn get_db_connection() -> &'static DbPoolConnection { &DB diff --git a/frameworks/Rust/hyperlane/src/lazy.rs b/frameworks/Rust/hyperlane/src/lazy.rs index a792c04b13b..e50d528ce7a 100644 --- a/frameworks/Rust/hyperlane/src/lazy.rs +++ b/frameworks/Rust/hyperlane/src/lazy.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub static DB: Lazy = Lazy::new(|| block_on(async { connection_db().await })); pub static CACHE: Lazy> = Lazy::new(|| block_on(async { init_cache().await })); diff --git a/frameworks/Rust/hyperlane/src/request_middleware.rs b/frameworks/Rust/hyperlane/src/request_middleware.rs index 7e7eb1cd7c1..ff75877b318 100644 --- a/frameworks/Rust/hyperlane/src/request_middleware.rs +++ b/frameworks/Rust/hyperlane/src/request_middleware.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub async fn request(ctx: Context) { ctx.set_response_header(CONNECTION, CONNECTION_KEEP_ALIVE) diff --git a/frameworks/Rust/hyperlane/src/route.rs b/frameworks/Rust/hyperlane/src/route.rs index 74f346b9ea7..46442ce2137 100644 --- a/frameworks/Rust/hyperlane/src/route.rs +++ b/frameworks/Rust/hyperlane/src/route.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub async fn json(ctx: Context) { let json: Value = json!({ diff --git a/frameworks/Rust/hyperlane/src/server.rs b/frameworks/Rust/hyperlane/src/server.rs index 49ce05c7398..f7f50162226 100644 --- a/frameworks/Rust/hyperlane/src/server.rs +++ b/frameworks/Rust/hyperlane/src/server.rs @@ -1,11 +1,11 @@ -use crate::*; +use super::*; fn runtime() -> Runtime { Builder::new_multi_thread() .worker_threads(get_thread_count()) .thread_stack_size(1_048_576) .max_blocking_threads(1_024_000) - .max_io_events_per_tick(1024000) + .max_io_events_per_tick(1_024_000) .enable_all() .build() .unwrap() diff --git a/frameworks/Rust/hyperlane/src/type.rs b/frameworks/Rust/hyperlane/src/type.rs index b5e47ecd6cd..0e23804c3d7 100644 --- a/frameworks/Rust/hyperlane/src/type.rs +++ b/frameworks/Rust/hyperlane/src/type.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub type DbPoolConnection = Pool; pub type Queries = i32; diff --git a/frameworks/Rust/hyperlane/src/utils.rs b/frameworks/Rust/hyperlane/src/utils.rs index 2f67531f50e..5b22bbb8447 100644 --- a/frameworks/Rust/hyperlane/src/utils.rs +++ b/frameworks/Rust/hyperlane/src/utils.rs @@ -1,4 +1,4 @@ -use crate::*; +use super::*; pub fn escape_html(input: &str) -> String { let mut result: String = String::new();