File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,8 @@ struct EnvironmentClient {
4242 var currentReferenceCache : @Sendable ( ) -> CurrentReferenceCache ?
4343 var dbId : @Sendable ( ) -> String ?
4444 var mastodonCredentials : @Sendable ( ) -> Mastodon . Credentials ?
45- var mastodonPost : @Sendable ( _ client: Client , _ post: String ) async throws -> Void
45+ #warning("drop client parameter and move this to httpClient")
46+ var mastodonPost : @Sendable ( _ client: Client , _ message: String ) async throws -> Void
4647 var random : @Sendable ( _ range: ClosedRange < Double > ) -> Double = { XCTFail ( " random " ) ; return Double . random ( in: $0) }
4748
4849 enum FailureMode : String {
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ enum Social {
105105 throw Error . invalidMessage
106106 }
107107 // Ignore errors from here for now to keep concurrency simpler
108- async let _ = try ? await environment. mastodonPost ( client, message)
108+ async let _ = try ? await environment. mastodonPost ( client: client , message : message)
109109 }
110110
111111 static func postToFirehose( client: Client ,
You can’t perform that action at this time.
0 commit comments