diff --git a/GRDB/Core/SchedulingWatchdog.swift b/GRDB/Core/SchedulingWatchdog.swift index 8bb4bb833..280efbcbc 100644 --- a/GRDB/Core/SchedulingWatchdog.swift +++ b/GRDB/Core/SchedulingWatchdog.swift @@ -7,7 +7,7 @@ /// https://github.com/groue/GRDB.swift/issues/55. To support this use case, a /// single dispatch queue can be temporarily shared by two or more connections. /// -/// - SchedulingWatchdog.makeSerializedQueueAllowing(database:) creates a +/// - SchedulingWatchdog.makeSerializedQueue(allowingDatabase:) creates a /// dispatch queue that allows one database. /// /// It does so by registering one instance of SchedulingWatchdog as a specific @@ -27,7 +27,7 @@ final class SchedulingWatchdog { allowedDatabases = [database] } - static func makeSerializedQueueAllowing(database: Database) -> DispatchQueue { + static func makeSerializedQueue(allowingDatabase database: Database) -> DispatchQueue { let queue = DispatchQueue(label: "GRDB.SerializedDatabase") let watchdog = SchedulingWatchdog(allowedDatabase: database) queue.setSpecific(key: specificKey, value: watchdog) diff --git a/GRDB/Core/SerializedDatabase.swift b/GRDB/Core/SerializedDatabase.swift index bcc4b2656..2eeab6fd9 100644 --- a/GRDB/Core/SerializedDatabase.swift +++ b/GRDB/Core/SerializedDatabase.swift @@ -35,7 +35,7 @@ final class SerializedDatabase { config.threadingMode = .multiThread db = try Database(path: path, configuration: config, schemaCache: schemaCache) - queue = SchedulingWatchdog.makeSerializedQueueAllowing(database: db) + queue = SchedulingWatchdog.makeSerializedQueue(allowingDatabase: db) try queue.sync { try db.setup() }