Skip to content

Commit

Permalink
update trait name
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath committed Jun 11, 2024
1 parent 7b73408 commit b9b8ea3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/config/from_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ fn to_common_field<F>(
args: BTreeMap<String, config::Arg>,
) -> Valid<config::Field, String>
where
F: Fieldlike,
F: FieldLike,
{
let type_of = field.type_of();
let base = &type_of.base;
Expand Down Expand Up @@ -454,13 +454,13 @@ impl HasName for InputValueDefinition {
}
}

trait Fieldlike {
trait FieldLike {
fn type_of(&self) -> &Type;
fn description(&self) -> &Option<Positioned<String>>;
fn directives(&self) -> &[Positioned<ConstDirective>];
fn default_value(&self) -> Option<ConstValue>;
}
impl Fieldlike for FieldDefinition {
impl FieldLike for FieldDefinition {
fn type_of(&self) -> &Type {
&self.ty.node
}
Expand All @@ -474,7 +474,7 @@ impl Fieldlike for FieldDefinition {
None
}
}
impl Fieldlike for InputValueDefinition {
impl FieldLike for InputValueDefinition {
fn type_of(&self) -> &Type {
&self.ty.node
}
Expand Down

1 comment on commit b9b8ea3

@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 6.61ms 2.88ms 70.18ms 71.50%
Req/Sec 3.82k 186.29 4.18k 91.92%

456287 requests in 30.00s, 2.29GB read

Requests/sec: 15207.37

Transfer/sec: 78.05MB

Please sign in to comment.