Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Oct 29, 2024
1 parent 0cd7ec1 commit 03ed3fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 12 additions & 0 deletions rwf/src/http/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ pub struct Request {
received_at: OffsetDateTime,
}

impl Default for Request {
fn default() -> Self {
Self {
head: Head::default(),
session: None,
inner: Arc::new(Inner::default()),
params: None,
received_at: OffsetDateTime::now_utc(),
}
}
}

#[derive(Debug, Default, Clone)]
struct Inner {
body: Vec<u8>,
Expand Down
2 changes: 0 additions & 2 deletions rwf/src/http/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
use super::{Error, Handler, Request, Response, Router};
use crate::controller::Error as ControllerError;

use crate::analytics::Request as AnalyticsRequest;
use crate::colors::MaybeColorize;
use crate::model::{Model, Pool, ToValue};

use std::net::SocketAddr;
use std::sync::Arc;
Expand Down

0 comments on commit 03ed3fc

Please sign in to comment.