Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdemarGr committed Aug 30, 2023
1 parent dd0ceb2 commit 4a04c70
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 3 deletions.
1 change: 0 additions & 1 deletion modules/server/src/main/scala/gql/server/Compiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import scala.concurrent.duration._
import io.circe.syntax._
import gql.preparation._
import cats.parse.Caret
import gql.server.planner.Planner

sealed trait CompilationError
object CompilationError {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 Valdemar Grange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gql.server.interpreter

import cats.effect.implicits._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 Valdemar Grange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gql.server.interpreter

import io.circe.syntax._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright 2023 Valdemar Grange
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package gql.server.interpreter

final case class StreamingData[F[_], A, B](
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import io.circe.syntax._
import gql._

/** The [[SubqueryInterpreter]] recursively runs through the AST and performs a multitude of tasks:
* - Runs the [[Resolver]]/[[Step]]s defined in the query.
* - Runs the [[gql.resolver.Resolver]]/[[gql.resolver.Step]]s defined in the query.
* - Accumulates errors that occur during the evaluation of the query.
* - Logs streams that have been subscribed to.
* - Batches computations that have been marked as batchable.
Expand Down Expand Up @@ -82,7 +82,7 @@ object SubqueryInterpreter {
case None => W.pure(Chain.empty)
case Some(cs) => runEdgeCont(cs, next)
}
case d: StepCont.Done[F, ?] =>
case d: StepCont.Done[f, ?] =>
startNext(d.prep, cs.map(_.node))
.map(_.zipWith(cs) { case (j, IndexedData(i, _)) => (i, j) })
}
Expand Down

0 comments on commit 4a04c70

Please sign in to comment.