Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Oct 29, 2024
1 parent 2bcd233 commit c214670
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/ir/discriminator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ use std::collections::BTreeSet;
use anyhow::{bail, Result};
use async_graphql::Value;
use keyed_discriminator::KeyedDiscriminator;
use tailcall_valid::{Valid, Validator};
use type_field_discriminator::TypeFieldDiscriminator;

use crate::core::json::{JsonLike, JsonObjectLike};
use crate::core::valid::{Valid, Validator};

/// Resolver for `__typename` of Union and Interface types.
///
Expand Down
4 changes: 2 additions & 2 deletions src/core/ir/discriminator/keyed_discriminator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::collections::BTreeSet;

use anyhow::{bail, Result};
use async_graphql::Value;
use tailcall_valid::Valid;

use super::TypedValue;
use crate::core::valid::Valid;

/// Resolver for `__typename` of Union and Interface types.
///
Expand Down Expand Up @@ -82,10 +82,10 @@ impl KeyedDiscriminator {
mod tests {
use async_graphql::Value;
use serde_json::json;
use tailcall_valid::Validator;
use test_log::test;

use super::KeyedDiscriminator;
use crate::core::valid::Validator;

#[test]
fn test_keyed_discriminator_positive() {
Expand Down
4 changes: 2 additions & 2 deletions src/core/ir/discriminator/type_field_discriminator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ use std::collections::BTreeSet;

use anyhow::{bail, Result};
use async_graphql::Value;
use tailcall_valid::Valid;

use super::TypedValue;
use crate::core::json::JsonLike;
use crate::core::valid::Valid;

/// Resolver for `__typename` of Union and Interface types.
///
Expand Down Expand Up @@ -80,10 +80,10 @@ impl TypeFieldDiscriminator {
mod tests {
use async_graphql::Value;
use serde_json::json;
use tailcall_valid::Validator;
use test_log::test;

use super::TypeFieldDiscriminator;
use crate::core::valid::Validator;

#[test]
fn test_type_field_positive() {
Expand Down
1 change: 1 addition & 0 deletions src/core/jit/transform/check_dedupe.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::convert::Infallible;

use tailcall_valid::Valid;

use crate::core::ir::model::IR;
use crate::core::jit::OperationPlan;
use crate::core::Transform;
Expand Down
3 changes: 2 additions & 1 deletion src/core/jit/transform/check_protected.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use std::convert::Infallible;
use std::marker::PhantomData;

use tailcall_valid::Valid;

use crate::core::ir::model::IR;
use crate::core::jit::OperationPlan;
use crate::core::valid::Valid;
use crate::core::Transform;

pub struct CheckProtected<A>(PhantomData<A>);
Expand Down

1 comment on commit c214670

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 8.42ms 4.02ms 194.08ms 91.34%
Req/Sec 3.03k 385.34 4.47k 82.75%

362111 requests in 30.02s, 1.82GB read

Requests/sec: 12062.64

Transfer/sec: 61.91MB

Please sign in to comment.