Update dependency

This commit is contained in:
Christoph Hagen 2023-01-11 19:56:39 +01:00
parent 0cdae05f68
commit 8a5de0acd0
2 changed files with 9 additions and 7 deletions

View File

@ -8,7 +8,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/vapor", from: "4.0.0"),
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.1.0"),
.package(url: "https://github.com/christophhagen/Clairvoyant", from: "0.2.0"),
],
targets: [
.target(name: "App",

View File

@ -343,16 +343,18 @@ final class CapServer: ServerOwner {
// MARK: Monitoring
private let capCountPropertyId = PropertyId(name: "caps", uniqueId: 1)
public let name = "caps"
private let imageCountPropertyId = PropertyId(name: "images", uniqueId: 2)
private let capCountPropertyId = PropertyId(owner: "caps", uniqueId: 2)
private let classifierVersionPropertyId = PropertyId(name: "classifier", uniqueId: 3)
private let imageCountPropertyId = PropertyId(owner: "caps", uniqueId: 3)
private let classifierVersionPropertyId = PropertyId(owner: "caps", uniqueId: 4)
func registerProperties(with monitor: PropertyManager) {
let capCountProperty = PropertyRegistration(
uniqueId: capCountPropertyId.uniqueId,
name: capCountPropertyId.name,
name: "caps",
updates: .continuous,
isLogged: true,
allowsManualUpdate: false,
@ -363,7 +365,7 @@ final class CapServer: ServerOwner {
let imageCountProperty = PropertyRegistration(
uniqueId: imageCountPropertyId.uniqueId,
name: imageCountPropertyId.name,
name: "images",
updates: .continuous,
isLogged: true,
allowsManualUpdate: false,
@ -374,7 +376,7 @@ final class CapServer: ServerOwner {
let classifierVersionProperty = PropertyRegistration(
uniqueId: classifierVersionPropertyId.uniqueId,
name: classifierVersionPropertyId.name,
name: "classifier",
updates: .continuous,
isLogged: true,
allowsManualUpdate: false,