Skip to content

Commit b52665c

Browse files
committed
Merge pull request vert-x#32 from Zwergal/pool_bugfix
removed double pool connection
2 parents a832629 + 16a509e commit b52665c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/io/vertx/asyncsql/database/ConnectionHandler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ trait ConnectionHandler extends ScalaBusMod {
5858
}
5959
}
6060

61-
protected def select(json: JsonObject): AsyncReply = AsyncReply(pool.withConnection({ c: Connection =>
61+
protected def select(json: JsonObject): AsyncReply = AsyncReply {
6262
sendWithPool(rawCommand(selectCommand(json)))
63-
}))
63+
}
6464

6565
protected def insertCommand(json: JsonObject): String = {
6666
val table = json.getString("table")

0 commit comments

Comments
 (0)