Update dependencies

This commit is contained in:
Christoph Hagen
2023-10-02 00:37:50 +02:00
parent 9db072d769
commit aa474c365f
5 changed files with 59 additions and 14 deletions

View File

@ -52,7 +52,7 @@ final class SQLiteDatabase {
private let registeredPlayerCountMetric: Metric<Int>
init(database: Database, mail: Configuration.EMail?) async throws {
self.registeredPlayerCountMetric = try await Metric(
self.registeredPlayerCountMetric = Metric(
"schafkopf.players",
name: "Number of users",
description: "The total number of user accounts")

View File

@ -28,15 +28,15 @@ final class TableManagement {
- Throws: Errors when the file could not be read
*/
init(database: Database) async throws {
self.tableCountMetric = try await .init(
self.tableCountMetric = .init(
"schafkopf.tables",
name: "Open tables",
description: "The number of currently available tables")
self.playingPlayerCountMetric = try await .init(
self.playingPlayerCountMetric = .init(
"schafkopf.playing",
name: "Sitting players",
description: "The number of players currently sitting at a table")
self.connectedPlayerCountMetric = try await .init(
self.connectedPlayerCountMetric = .init(
"schafkopf.connected",
name: "Connected players",
description: "The number of players with a websocket connection to the server")