Skip to content

Commit a22dccd

Browse files
committed
Make ConsoleSearchFilterProtocol Sendable
1 parent afb5a27 commit a22dccd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/PulseUI/Features/Search/Services/ConsoleSearchFilter.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import Foundation
88
import Pulse
99

10-
protocol ConsoleSearchFilterProtocol {
10+
protocol ConsoleSearchFilterProtocol: Sendable {
1111
associatedtype Value: CustomStringConvertible
1212

1313
var name: String { get }
@@ -27,7 +27,7 @@ extension ConsoleSearchFilterProtocol {
2727
var token: String { makeToken(with: values.map(\.description)) }
2828
}
2929

30-
enum ConsoleSearchFilter: Hashable, Codable {
30+
enum ConsoleSearchFilter: Hashable, Codable, Sendable {
3131
// MARK: Logs
3232
case label(ConsoleSearchFilterLabel)
3333
case level(ConsoleSearchFilterLevel)
@@ -90,7 +90,7 @@ struct ConsoleSearchFilterFile: ConsoleSearchLogFilterProtocol, Hashable, Codabl
9090

9191
// MARK: ConsoleSearchNetworkFilterProtocol
9292

93-
struct ConsoleSearchFilterStatusCode: ConsoleSearchNetworkFilterProtocol, Hashable, Codable {
93+
struct ConsoleSearchFilterStatusCode: ConsoleSearchNetworkFilterProtocol, Hashable, Codable, Sendable {
9494
var name: String { "Status Code" }
9595
var values: [ConsoleSearchRange<Int>]
9696
var valueExamples: [String] { ["2XX", "304", "400-404"] }
@@ -143,7 +143,7 @@ enum ConsoleSearchRangeModfier: Codable {
143143
case open, closed
144144
}
145145

146-
struct ConsoleSearchRange<T: Hashable & Comparable & Codable>: Hashable, Codable, CustomStringConvertible {
146+
struct ConsoleSearchRange<T: Hashable & Comparable & Codable & Sendable>: Hashable, Codable, CustomStringConvertible, Sendable {
147147
var modifier: ConsoleSearchRangeModfier
148148
var lowerBound: T
149149
var upperBound: T

0 commit comments

Comments
 (0)