From 804ae70defd2985ac70577f0c4068de745224c3a Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 17 Apr 2022 09:43:36 +0100 Subject: [PATCH] Format refreshViews() in CacheImporter Signed-off-by: Graham --- .../main/kotlin/org/openrs2/archive/cache/CacheImporter.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheImporter.kt b/archive/src/main/kotlin/org/openrs2/archive/cache/CacheImporter.kt index f52a3dc2..c62142f1 100644 --- a/archive/src/main/kotlin/org/openrs2/archive/cache/CacheImporter.kt +++ b/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()