Skip to content

Commit

Permalink
concurrency warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
petrpavlik committed May 18, 2024
1 parent 44fddf2 commit de65bc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/SwiftSentry/Sentry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
import NIO
import NIOFoundationCompat

public final class Sentry {
public final class Sentry: Sendable {
enum SwiftSentryError: Error {
// case CantEncodeEvent
// case CantCreateRequest
Expand All @@ -14,11 +14,11 @@ public final class Sentry {
internal static let VERSION = "SentrySwift/1.0.0"

private let dsn: Dsn
private var httpClient: HTTPClient
private let httpClient: HTTPClient
private let isUsingCustomHttpClient: Bool
internal var servername: String?
internal var release: String?
internal var environment: String?
internal let servername: String?
internal let release: String?
internal let environment: String?
// This one can be changed, it's merely the default value
internal static var maxAttachmentSize = 20_971_520
// These ones are set by Sentry
Expand Down Expand Up @@ -75,7 +75,7 @@ public final class Sentry {
}

@discardableResult
public func capture(error: Error, eventLoop: EventLoop? = nil) async throws -> UUID {
public func capture(error: Error) async throws -> UUID {
let edb = ExceptionDataBag(
type: error.localizedDescription,
value: nil,
Expand Down

0 comments on commit de65bc4

Please sign in to comment.