remove wraning for intelliJ
Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/4c18c38a Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/4c18c38a Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/4c18c38a Branch: refs/heads/master Commit: 4c18c38ae072b4f2a2853fc62814779ccf818647 Parents: a3e1e39 Author: daewon <[email protected]> Authored: Fri Apr 6 14:26:09 2018 +0900 Committer: daewon <[email protected]> Committed: Fri Apr 6 14:26:09 2018 +0900 ---------------------------------------------------------------------- .../src/main/scala/org/apache/s2graph/graphql/HttpServer.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/4c18c38a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala ---------------------------------------------------------------------- diff --git a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala index 26bce34..685e87b 100644 --- a/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala +++ b/s2graphql/src/main/scala/org/apache/s2graph/graphql/HttpServer.scala @@ -22,9 +22,11 @@ package org.apache.s2graph.graphql import akka.actor.ActorSystem import akka.http.scaladsl.Http import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._ +import akka.http.scaladsl.model.{HttpRequest, HttpResponse} import akka.http.scaladsl.server.Directives._ import akka.http.scaladsl.server._ import akka.stream.ActorMaterializer +import akka.stream.scaladsl.Flow import org.slf4j.LoggerFactory import scala.concurrent.Await @@ -40,7 +42,7 @@ object Server extends App { import scala.concurrent.duration._ - val route = (post & path("graphql")) { + val route: Flow[HttpRequest, HttpResponse, Any] = (post & path("graphql")) { entity(as[spray.json.JsValue])(GraphQLServer.endpoint) } ~ { getFromResource("assets/graphiql.html")
