Skip to content

Commit 9985964

Browse files
Hongyan JiangGitHub Enterprise
authored andcommitted
fix for Swift 6
1 parent c3872ac commit 9985964

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/InstanaAgent/Monitors/Metric/Symbolication/SymbolicationOperation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import Foundation
77
import ImageTracker
88
#endif
99

10-
class SymbolicationOperation: Operation {
10+
class SymbolicationOperation: Operation, @unchecked Sendable {
1111
weak var metricMonitor: MetricMonitor?
1212

1313
init(metricMonitor: MetricMonitor?) {

Sources/InstanaAgent/Utils/PropertyWrapper/Atomic.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AtomicDictionary<Key: Hashable, Value>: CustomDebugStringConvertible {
4848
}
4949

5050
extension AtomicDictionary: Equatable where Value: Equatable {
51-
static func == <Key: Hashable, Value: Equatable>(lhs: AtomicDictionary<Key, Value>, rhs: AtomicDictionary<Key, Value>) -> Bool {
51+
static func == (lhs: AtomicDictionary<Key, Value>, rhs: AtomicDictionary<Key, Value>) -> Bool {
5252
lhs.dict == rhs.dict
5353
}
5454
}
@@ -116,7 +116,7 @@ extension AtomicArray: Equatable where T: Equatable {
116116
lock.atomic { array.contains(element) }
117117
}
118118

119-
static func == <T: Equatable>(lhs: AtomicArray<T>, rhs: AtomicArray<T>) -> Bool {
119+
static func == (lhs: AtomicArray<T>, rhs: AtomicArray<T>) -> Bool {
120120
lhs.array == rhs.array
121121
}
122122
}
@@ -171,7 +171,7 @@ class AtomicSet<T: Hashable>: CustomDebugStringConvertible, Sequence {
171171
}
172172

173173
extension AtomicSet: Equatable {
174-
static func == <T>(lhs: AtomicSet<T>, rhs: AtomicSet<T>) -> Bool {
174+
static func == (lhs: AtomicSet<T>, rhs: AtomicSet<T>) -> Bool {
175175
lhs.set == rhs.set
176176
}
177177
}

0 commit comments

Comments
 (0)