Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Sep 1, 2023
1 parent 3fa466a commit d28e88c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ final class PushMessagesPresenter: ObservableObject {
defer { reloadPushMessages() }
self.interactor = interactor
self.router = router
setUpMessagesRefresh()
}

private func setUpMessagesRefresh() {
Timer.publish(every: 60.0, on: .main, in: .default)
.autoconnect()
.sink { [weak self] _ in
self?.reloadPushMessages()
}
.store(in: &disposeBag)
}

func deletePushMessage(at indexSet: IndexSet) {
Expand Down
1 change: 0 additions & 1 deletion Sources/Web3Inbox/WebView/WebViewProxy.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ actor WebViewProxy {
func respond(_ response: RPCResponse, _ request: RPCRequest) async throws {
let body = try response.json(dateEncodingStrategy: .millisecondsSince1970)
let logProperties: [String: String] = ["method": request.method, "requestId": "\(request.id!)", "response": body]
print(logProperties)
logger.debug("resonding to w3i request \(request.method) with \(body)", properties: logProperties)
let script = scriptFormatter.formatScript(body: body)
webView.evaluateJavaScript(script, completionHandler: nil)
Expand Down

0 comments on commit d28e88c

Please sign in to comment.