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 super::middleware;
|
||||||
|
|
||||||
use dd0c_route::auth::AuthProvider;
|
use crate::auth::AuthProvider;
|
||||||
use dd0c_route::config::AppConfig;
|
use crate::config::AppConfig;
|
||||||
use dd0c_route::data::{EventQueue, TelemetryEvent};
|
use crate::data::{EventQueue, TelemetryEvent};
|
||||||
use dd0c_route::router::RouterBrain;
|
use crate::router::RouterBrain;
|
||||||
|
|
||||||
pub struct ProxyState {
|
pub struct ProxyState {
|
||||||
pub auth: Arc<dyn AuthProvider>,
|
pub auth: Arc<dyn AuthProvider>,
|
||||||
@@ -181,8 +181,8 @@ pub enum ProxyError {
|
|||||||
UpstreamError(String),
|
UpstreamError(String),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<dd0c_route::auth::AuthError> for ProxyError {
|
impl From<crate::auth::AuthError> for ProxyError {
|
||||||
fn from(e: dd0c_route::auth::AuthError) -> Self {
|
fn from(e: crate::auth::AuthError) -> Self {
|
||||||
ProxyError::AuthError(e.to_string())
|
ProxyError::AuthError(e.to_string())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user