Fix P1 Rust: revert proxy/handler.rs to crate:: (it's part of the library)
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 7m3s
Some checks failed
CI — P1 Route (Rust) / test (push) Failing after 7m3s
Only api/handler.rs (binary-only module) uses dd0c_route:: proxy/handler.rs is included via lib.rs pub mod proxy, so it must use crate::
This commit is contained in:
@@ -13,10 +13,10 @@ use tracing::{info, warn};
|
||||
|
||||
use super::middleware;
|
||||
|
||||
use dd0c_route::auth::AuthProvider;
|
||||
use dd0c_route::config::AppConfig;
|
||||
use dd0c_route::data::{EventQueue, TelemetryEvent};
|
||||
use dd0c_route::router::RouterBrain;
|
||||
use crate::auth::AuthProvider;
|
||||
use crate::config::AppConfig;
|
||||
use crate::data::{EventQueue, TelemetryEvent};
|
||||
use crate::router::RouterBrain;
|
||||
|
||||
pub struct ProxyState {
|
||||
pub auth: Arc<dyn AuthProvider>,
|
||||
@@ -181,8 +181,8 @@ pub enum ProxyError {
|
||||
UpstreamError(String),
|
||||
}
|
||||
|
||||
impl From<dd0c_route::auth::AuthError> for ProxyError {
|
||||
fn from(e: dd0c_route::auth::AuthError) -> Self {
|
||||
impl From<crate::auth::AuthError> for ProxyError {
|
||||
fn from(e: crate::auth::AuthError) -> Self {
|
||||
ProxyError::AuthError(e.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user