Format refreshViews() in CacheImporter

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 3 years ago
parent fe69594180
commit 804ae70def
  1. 6
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheImporter.kt

@ -1330,9 +1330,11 @@ public class CacheImporter @Inject constructor(
public suspend fun refreshViews() {
database.execute { connection ->
connection.prepareStatement("""
connection.prepareStatement(
"""
SELECT pg_try_advisory_lock(0)
""".trimIndent()).use { stmt ->
""".trimIndent()
).use { stmt ->
stmt.executeQuery().use { rows ->
if (!rows.next()) {
throw IllegalStateException()

Loading…
Cancel
Save