Skip to content

Commit

Permalink
silent warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Jan 21, 2022
1 parent 12c06d4 commit 6794a6f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/Relayer/WakuNetworkRelay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public final class WakuNetworkRelay {
private func acknowledgeSubscription(requestId: Int64) {
let response = JSONRPCResponse(id: requestId, result: AnyCodable(true))
let responseJson = try! response.json()
try? jsonRpcSubscriptionsHistory.resolve(response: JsonRpcResponseTypes.response(response))
_ = try? jsonRpcSubscriptionsHistory.resolve(response: JsonRpcResponseTypes.response(response))
dispatcher.send(responseJson) { [weak self] error in
if let error = error {
self?.logger.debug("Failed to Respond for request id: \(requestId), error: \(error)")
Expand Down
2 changes: 1 addition & 1 deletion Sources/WalletConnect/Engine/SessionEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ final class SessionEngine {
if let error = error {
logger.error(error)
} else {
try? sequencesStore.setSequence(session)
sequencesStore.setSequence(session)
onSessionUpgrade?(session.topic, newPermissions)
}
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/WalletConnect/Relay/WalletConnectRelay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ class WalletConnectRelay: WalletConnectRelaying {

func respond(topic: String, response: JsonRpcResponseTypes, completion: @escaping ((Error?)->())) {
do {
try jsonRpcHistory.resolve(response: response)
_ = try jsonRpcHistory.resolve(response: response)
let message = try jsonRpcSerialiser.serialise(topic: topic, encodable: response.value)
logger.debug("Responding....topic: \(topic)")
networkRelayer.publish(topic: topic, payload: message) { [weak self] error in
networkRelayer.publish(topic: topic, payload: message) { error in
completion(error)
}
} catch WalletConnectError.internal(.jsonRpcDuplicateDetected) {
Expand Down

0 comments on commit 6794a6f

Please sign in to comment.