Skip to content

Commit 290b9e8

Browse files
authored
Merge pull request swift-server#71 from rauhul/fix-availability
Add missing availability annotations
2 parents 1e67800 + 3360680 commit 290b9e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Prometheus/Prometheus.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class PrometheusClient {
2424
/// Creates prometheus formatted metrics
2525
///
2626
/// - returns: A newline separated string with metrics for all Metrics this PrometheusClient handles
27-
@available(macOS 10.15.0, *)
27+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2828
public func collect() async -> String {
2929
let metrics = self.lock.withLock { self.metrics }
3030
let task = Task {
@@ -55,7 +55,7 @@ public class PrometheusClient {
5555
/// Creates prometheus formatted metrics
5656
///
5757
/// - returns: A `ByteBuffer` containing a newline separated string with metrics for all Metrics this PrometheusClient handles
58-
@available(macOS 10.15.0, *)
58+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
5959
public func collect() async -> ByteBuffer {
6060
let metrics = self.lock.withLock { self.metrics }
6161
let task = Task { () -> ByteBuffer in

0 commit comments

Comments
 (0)