Skip to content

Commit

Permalink
create the router module
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal authored and FlorentinDUBOIS committed Jul 13, 2022
1 parent 5b58b91 commit 96c0c5c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use super::server::{Server,ProxyChannel,ListenToken,
use super::socket::server_bind;
use super::retry::RetryPolicy;
use super::protocol::http::parser::{hostname_and_port, RequestState};
use super::trie::TrieNode;
use router::trie::TrieNode;
use util::UnwrapLog;
use timer::TimeoutContainer;
use sozu_command::ready::Ready;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/https_openssl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ use backends::BackendMap;
use server::{Server,ProxyChannel,ListenToken,SessionToken,
ListenSession, CONN_RETRIES, push_event};
use socket::server_bind;
use trie::*;
use router::trie::*;
use protocol::{ProtocolResult,Http,Pipe,StickySession};
use protocol::openssl::TlsHandshake;
use protocol::http::DefaultAnswerStatus;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/https_rustls/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use {AppId,ConnectionError,Protocol,
use backends::BackendMap;
use server::{Server,ProxyChannel,ListenToken,SessionToken,ListenSession,CONN_RETRIES};
use socket::server_bind;
use trie::*;
use router::trie::*;
use protocol::StickySession;
use protocol::http::DefaultAnswerStatus;
use util::UnwrapLog;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/https_rustls/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use rustls::internal::pemfile;
use sozu_command::proxy::{CertificateAndKey, CertFingerprint, AddCertificate, RemoveCertificate};
use sozu_command::certificate::calculate_fingerprint_from_der;

use trie::TrieNode;
use router::trie::TrieNode;

struct TlsData {
pub cert: CertifiedKey,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ extern crate foreign_types_shared;
pub mod pool;
pub mod buffer_queue;
pub mod socket;
pub mod trie;
pub mod router;
pub mod protocol;
pub mod http;
pub mod backends;
Expand Down
1 change: 1 addition & 0 deletions lib/src/router/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod trie;
File renamed without changes.

0 comments on commit 96c0c5c

Please sign in to comment.