You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nlpcraft.apache.org by ar...@apache.org on 2020/08/23 02:49:29 UTC
[incubator-nlpcraft] branch NLPCRAFT-41 updated: Fixed compilation.
This is an automated email from the ASF dual-hosted git repository.
aradzinski pushed a commit to branch NLPCRAFT-41
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/NLPCRAFT-41 by this push:
new 32e6682 Fixed compilation.
32e6682 is described below
commit 32e668236bdad6eb85776f78a83740ab4fd099c6
Author: Aaron Radzinski <ar...@datalingvo.com>
AuthorDate: Sat Aug 22 19:49:18 2020 -0700
Fixed compilation.
---
.../model/tools/test/impl/NCTestAutoModelValidatorImpl.scala | 4 ++--
.../main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala | 5 ++---
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/impl/NCTestAutoModelValidatorImpl.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/impl/NCTestAutoModelValidatorImpl.scala
index 37c1301..55bcf4d 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/impl/NCTestAutoModelValidatorImpl.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/test/impl/NCTestAutoModelValidatorImpl.scala
@@ -20,10 +20,10 @@ package org.apache.nlpcraft.model.tools.test.impl
import com.typesafe.scalalogging.LazyLogging
import org.apache.nlpcraft.common.ascii.NCAsciiTable
import org.apache.nlpcraft.common.util.NCUtils
-import org.apache.nlpcraft.model.intent.impl.NCIntentDslCompiler
+import org.apache.nlpcraft.model.intent.impl.NCIntentScanner
import org.apache.nlpcraft.model.tools.embedded.NCEmbeddedProbe
import org.apache.nlpcraft.model.tools.test.NCTestClientBuilder
-import org.apache.nlpcraft.model.{NCIntent, NCIntentRef, NCIntentSample, NCModel}
+import org.apache.nlpcraft.model._
/**
* Implementation for `NCTestAutoModelValidator` class.
diff --git a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
index 1f22354..3228bdf 100644
--- a/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
+++ b/nlpcraft/src/main/scala/org/apache/nlpcraft/server/rest/NCBasicRestApi.scala
@@ -45,8 +45,7 @@ import spray.json.{JsValue, RootJsonFormat}
import scala.collection.JavaConverters._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.Future
-import akka.http.scaladsl.coding.NoCoding
-import akka.http.scaladsl.coding.Gzip
+import akka.http.scaladsl.coding.{Coders, Gzip, NoCoding}
/**
* REST API default implementation.
@@ -1776,7 +1775,7 @@ class NCBasicRestApi extends NCRestApi with LazyLogging with NCOpenCensusTrace w
}
} ~
post {
- encodeResponseWith(NoCoding, Gzip) {
+ encodeResponseWith(Coders.NoCoding, Coders.Gzip) {
withRequestTimeoutResponse(_ ⇒ timeoutResp) {
path(API / "signin") { withLatency(M_SIGNIN_LATENCY_MS, signin$) } ~
path(API / "signout") { withLatency(M_SIGNOUT_LATENCY_MS, signout$) } ~ {