Skip to content
This repository was archived by the owner on Aug 24, 2018. It is now read-only.

Commit e177407

Browse files
committed
close but not in a future
1 parent 7898a99 commit e177407

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/scala_2.10/com/wordnik/swagger/client/RestClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,5 @@ class RestClient(config: SwaggerConfig) extends TransportClient with Logging {
442442
Map("Content-Type" -> value)
443443
}
444444

445-
def close() = Future { client.close() }
445+
def close() = client.closeAsynchronously()
446446
}

src/main/scala_2.10/com/wordnik/swagger/client/TransportClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ trait TransportClient {
103103
implicit def execContext: ExecutionContext
104104
def open(): Future[Unit] = Promise.successful(()).future
105105
def submit(method: String, uri: String, params: Iterable[(String, Any)], headers: Iterable[(String, String)], body: String, timeout: Duration = 90.seconds): Future[ClientResponse]
106-
def close(): Future[Unit]
106+
def close(): Unit
107107
}

version.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version in ThisBuild := "0.3.3"
1+
version in ThisBuild := "0.3.4"

0 commit comments

Comments
 (0)