Fix scala warning

This commit is contained in:
Nikolay Martynov 2019-11-06 13:52:37 -05:00
parent 06a895672a
commit 17155f7d57
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ object AkkaHttpTestSyncWebServer {
val syncHandler: HttpRequest => HttpResponse = {
case HttpRequest(GET, uri: Uri, _, _, _) => {
val endpoint = HttpServerTest.ServerEndpoint.forPath(uri.path.toString())
HttpServerTest.controller(endpoint, new Closure[HttpResponse]() {
HttpServerTest.controller(endpoint, new Closure[HttpResponse](()) {
def doCall(): HttpResponse = {
val resp = HttpResponse(status = endpoint.getStatus)
endpoint match {