Skip to content

Commit

Permalink
Refactor RazorpayClient to use actor model and remove documentation e…
Browse files Browse the repository at this point in the history
…xclusion

- Changed `RazorpayClient` from a class to an actor for improved concurrency handling.
- Removed exclusion of `Documentation.docc` from the package configuration.
  • Loading branch information
vamsii777 committed Dec 21, 2024
1 parent 747892e commit 6a9c16d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ let package = Package(
dependencies: [
.product(name: "AsyncHTTPClient", package: "async-http-client")
],
exclude: ["Documentation.docc"],
swiftSettings: swiftSettings
),
.testTarget(
Expand All @@ -37,4 +36,4 @@ var swiftSettings: [SwiftSetting] {
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("FullTypedThrows"),
]
}
}
2 changes: 1 addition & 1 deletion Sources/RazorpayKit/RazorpayClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import AsyncHTTPClient
/// - ``iin``
/// - ``qrCode``
/// - ``webhook``
public final class RazorpayClient {
public actor RazorpayClient {

/// Routes for managing Razorpay accounts
public var account: RazorpayAccountRoutes
Expand Down

0 comments on commit 6a9c16d

Please sign in to comment.