From 2121a70e3206036203414bf3055a27bec07bb4c2 Mon Sep 17 00:00:00 2001 From: Andrey Frolov Date: Tue, 16 Apr 2024 13:59:38 +0200 Subject: [PATCH] SPT-1998 fix rebase --- NodeKit/CacheNode/ETag/UrlETagSaverNode.swift | 2 +- NodeKit/MockerIntegration/MockerProxyConfigNode.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NodeKit/CacheNode/ETag/UrlETagSaverNode.swift b/NodeKit/CacheNode/ETag/UrlETagSaverNode.swift index 6bf5803c..abfedc93 100644 --- a/NodeKit/CacheNode/ETag/UrlETagSaverNode.swift +++ b/NodeKit/CacheNode/ETag/UrlETagSaverNode.swift @@ -46,7 +46,7 @@ open class UrlETagSaverNode: AsyncNode { let url = data.request.url, let urlAsKey = url.withOrderedQuery() else { - return next?.process(data) ?? .emit(data: ()) + return next?.processLegacy(data) ?? .emit(data: ()) } UserDefaults.etagStorage?.set(tag, forKey: urlAsKey) diff --git a/NodeKit/MockerIntegration/MockerProxyConfigNode.swift b/NodeKit/MockerIntegration/MockerProxyConfigNode.swift index e110ecdd..964699ed 100644 --- a/NodeKit/MockerIntegration/MockerProxyConfigNode.swift +++ b/NodeKit/MockerIntegration/MockerProxyConfigNode.swift @@ -16,8 +16,8 @@ public enum MockerProxyConfigKey { /// - SeeAlso: /// - `MetadataConnectorNode` /// - `RequestRouterNode` -open class MockerProxyConfigNode: Node { - +open class MockerProxyConfigNode: AsyncNode { + private typealias Keys = MockerProxyConfigKey // MARK: - Public Properties @@ -54,7 +54,7 @@ open class MockerProxyConfigNode: Node { // MARK: - Node /// Добавляет хедеры в `data` - open func process(_ data: RequestModel) -> Observer { + open func processLegacy(_ data: RequestModel) -> Observer { guard self.isProxyingOn else { return self.next.processLegacy(data)