Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed May 13, 2024
1 parent eefd597 commit 9df1524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Amplify/Core/Support/AmplifyAsyncThrowingSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
//

import Foundation
import Combine

public typealias WeakAmplifyAsyncThrowingSequenceRef<Element> = WeakRef<AmplifyAsyncThrowingSequence<Element>>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public class AWSGraphQLSubscriptionTaskRunner<R: Decodable>: InternalTaskRunner,
self.subscription = try await appSyncClient?.subscribe(
id: subscriptionId,
query: encodeRequest(query: request.document, variables: request.variables)
).sink(receiveValue: { event in
self.onAsyncSubscriptionEvent(event: event)
).sink(receiveValue: { [weak self] event in
self?.onAsyncSubscriptionEvent(event: event)
})
} catch {
let error = APIError.operationError("Unable to get connection for api \(endpointConfig.name)", "", error)
Expand Down

0 comments on commit 9df1524

Please sign in to comment.