Skip to content

Commit

Permalink
Update route protocols with Sendable conformance (#13)
Browse files Browse the repository at this point in the history
- Updated `HyperOrderRoutes`, `HyperRefundRoutes`, and `HyperSessionRoutes` protocols to conform to the `Sendable` protocol, improving thread safety and concurrency support in the HyperCheckout library.
  • Loading branch information
vamsii777 authored Dec 20, 2024
1 parent 38752aa commit 7535caa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/HyperCheckout/Routes/HyperOrderRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import NIOHTTP1
///
/// print("Order Status: \(order.status)")
/// ```
public protocol HyperOrderRoutes {
public protocol HyperOrderRoutes: Sendable {
/// Retrieves the status of an order.
///
/// - Parameters:
Expand Down
2 changes: 1 addition & 1 deletion Sources/HyperCheckout/Routes/HyperRefundRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import NIOHTTP1
///
/// print("Refund Status: \(response.status)")
/// ```
public protocol HyperRefundRoutes {
public protocol HyperRefundRoutes: Sendable {
/// Requests a refund for an order.
///
/// - Parameters:
Expand Down
2 changes: 1 addition & 1 deletion Sources/HyperCheckout/Routes/HyperSessionRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import NIOHTTP1
///
/// let response = try await hyperCheckout.sessions.create(session: session)
/// ```
public protocol HyperSessionRoutes {
public protocol HyperSessionRoutes: Sendable {
/// Creates a new payment session.
///
/// - Parameter session: The session configuration.
Expand Down

0 comments on commit 7535caa

Please sign in to comment.