remove debug logs
This commit is contained in:
parent
30a8065a46
commit
c693dd2017
@ -3,8 +3,6 @@ package graphql
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/rs/zerolog/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type PaginatedQuery[ResultType any, Params any] struct {
|
type PaginatedQuery[ResultType any, Params any] struct {
|
||||||
@ -71,7 +69,6 @@ func (pq *PaginatedQuery[ResultType, Params]) Get(
|
|||||||
after := ""
|
after := ""
|
||||||
var noop ResultType
|
var noop ResultType
|
||||||
pageSize := (pq.c.MaxComplexity() - 9) / (GetComplexity(reflect.TypeOf(noop)) + 1)
|
pageSize := (pq.c.MaxComplexity() - 9) / (GetComplexity(reflect.TypeOf(noop)) + 1)
|
||||||
log.Debug().Msgf("using page size %d", pageSize)
|
|
||||||
for {
|
for {
|
||||||
page, pi, err := pq.getPage(ctx, params, after, pageSize)
|
page, pi, err := pq.getPage(ctx, params, after, pageSize)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user