Skip to content

Commit b82c37c

Browse files
committed
Actor annotations do not automatically apply to static methods
1 parent eafcce6 commit b82c37c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/AIProxy/BackgroundNetworker.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import Foundation
88

9-
@NetworkActor
109
struct BackgroundNetworker {
1110

1211
/// Throws AIProxyError.unsuccessfulRequest if the returned status code is non-200
12+
@NetworkActor
1313
static func makeRequestAndWaitForData(
1414
_ session: URLSession,
1515
_ request: URLRequest
@@ -28,6 +28,7 @@ struct BackgroundNetworker {
2828
}
2929

3030
/// Throws AIProxyError.unsuccessfulRequest if the returned status code is non-200
31+
@NetworkActor
3132
static func makeRequestAndWaitForAsyncBytes(
3233
_ session: URLSession,
3334
_ request: URLRequest

0 commit comments

Comments
 (0)