Skip to content

Commit d067b0e

Browse files
authored
Add missing Sendable annotations (#148)
# Motivation We were missing a few `Sendable` annotations on our public types. # Modification This PR adds `Sendable` to the missing types.
1 parent 79e5fb4 commit d067b0e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/CoreMetrics/Metrics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ extension Recorder: CustomStringConvertible {
374374

375375
// MARK: - Timer
376376

377-
public struct TimeUnit: Equatable {
378-
private enum Code: Equatable {
377+
public struct TimeUnit: Equatable, Sendable {
378+
private enum Code: Equatable, Sendable {
379379
case nanoseconds
380380
case microseconds
381381
case milliseconds

Sources/MetricsTestKit/TestMetrics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class TestMetrics: MetricsFactory {
4343
public typealias Label = String
4444
public typealias Dimensions = String
4545

46-
public struct FullKey {
46+
public struct FullKey: Sendable {
4747
let label: Label
4848
let dimensions: [(String, String)]
4949
}

0 commit comments

Comments
 (0)