Skip to content

Commit

Permalink
fix: fmt and clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Dec 21, 2024
1 parent 636f864 commit 593a416
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/torii/graphql/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ use async_graphql::dynamic::Schema;
use async_graphql::http::GraphiQLSource;
use async_graphql::Request;
use async_graphql_warp::graphql_subscription;
use serde_json::json;
use sqlx::{Pool, Sqlite};
use tokio::sync::broadcast::Receiver;
use warp::{Filter, Rejection, Reply};

use super::schema::build_schema;
use crate::constants::MODEL_TABLE;
use crate::query::data::count_rows;

pub async fn new(
mut shutdown_rx: Receiver<()>,
Expand All @@ -25,9 +22,7 @@ pub async fn new(
})
}

fn graphql_filter(
schema: Schema,
) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {
fn graphql_filter(schema: Schema) -> impl Filter<Extract = impl Reply, Error = Rejection> + Clone {

Check warning on line 25 in crates/torii/graphql/src/server.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/graphql/src/server.rs#L25

Added line #L25 was not covered by tests
let graphql_post = async_graphql_warp::graphql(schema.clone()).and_then(
move |(schema, request): (Schema, Request)| async move {
// Execute query
Expand Down

0 comments on commit 593a416

Please sign in to comment.