Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrooksCunningham committed Sep 13, 2024
1 parent 1d49a46 commit 9ec8c89
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ fn handle_test(req: Request, chan: &str) -> Response {
fn main() -> Result<(), Error> {
let client_req = Request::from_client();

if client_req.get_header_str("Grip-Sig").is_some() && client_req.get_url().path().contains("chatroom") {
// Send to fanout if the request has grip-sig
return Ok(client_req.handoff_fanout("self")?);
}

// Request is a test request - from client, or from Fanout
if client_req.get_url().path().starts_with("/chatroom") {
if client_req.get_header_str("Grip-Sig").is_some() {
Expand Down

0 comments on commit 9ec8c89

Please sign in to comment.