Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
KNiepok committed Feb 28, 2023
1 parent db7887e commit 222653c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
9 changes: 0 additions & 9 deletions graphql.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ type Schema struct {
subscribeResolverTimeout time.Duration
middlewares []Middleware
useFieldResolvers bool
visitors map[string]directives.Visitor
middlewares []Middleware
}

// AST returns the abstract syntax tree of the GraphQL schema definition.
Expand Down Expand Up @@ -146,13 +144,6 @@ func MaxParallelism(n int) SchemaOpt {
}
}

// RateLimiter is used to rate limit queries.
func RateLimiter(r ratelimit.RateLimiter) SchemaOpt {
return func(s *Schema) {
s.rateLimiter = r
}
}

// MaxQueryLength specifies the maximum allowed query length in bytes. The default is 0 which disables max length checking.
func MaxQueryLength(n int) SchemaOpt {
return func(s *Schema) {
Expand Down
12 changes: 5 additions & 7 deletions graphql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,19 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/graph-gophers/graphql-go/internal/exec/resolvable"
"strings"
"github.com/graph-gophers/graphql-go/internal/exec/resolvable"
"sync"
"testing"
"time"

"github.com/graph-gophers/graphql-go"
"github.com/graph-gophers/graphql-go/directives"
gqlerrors "github.com/graph-gophers/graphql-go/errors"
"github.com/graph-gophers/graphql-go/example/social"
"github.com/graph-gophers/graphql-go/example/starwars"
"github.com/graph-gophers/graphql-go/gqltesting"
"github.com/graph-gophers/graphql-go/internal/exec/resolvable"
"github.com/graph-gophers/graphql-go/introspection"
"github.com/graph-gophers/graphql-go/trace/tracer"
"strings"
"sync"
"testing"
"time"
)

type helloWorldResolver1 struct{}
Expand Down

0 comments on commit 222653c

Please sign in to comment.