Minor improvements and version bumps

This commit is contained in:
2017-07-02 08:37:43 +02:00
parent a245288359
commit a8addf946b
15 changed files with 25 additions and 31 deletions

View File

@ -156,7 +156,7 @@ class JdbcInventory(config: JdbcConfig) : JdbcHelper(config), Inventory {
}
for (c in cache.values) {
c.entries.removeIf { e -> e.value < now - 5 * MINUTE }
c.entries.removeAll { e -> e.value < now - 5 * MINUTE }
}
}

View File

@ -235,7 +235,6 @@ class JdbcMessageRepository(private val config: JdbcConfig) : AbstractMessageRep
}
}
@Throws(SQLException::class, IOException::class)
private fun update(connection: Connection, message: Plaintext) {
connection.prepareStatement(
"UPDATE Message SET iv=?, type=?, sender=?, recipient=?, data=?, ack_data=?, sent=?, received=?, " +