Merge pull request #4406 from AlphaWallet/remove-outdated-todo

Remove outdated TODOs
pull/4407/head
Hwee-Boon Yar 3 years ago committed by GitHub
commit e457a265e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      AlphaWallet/Core/ENS/ENSResolver.swift
  2. 1
      AlphaWallet/Core/ENS/ENSReverseResolver.swift
  3. 1
      AlphaWallet/Core/ENS/GetENSTextRecord.swift

@ -15,7 +15,6 @@ class ENSResolver: ENSDelegateImpl {
}
func getENSAddressFromResolver(forName name: String) -> Promise<AlphaWallet.Address> {
//TODO caching should be based on name instead
if let cachedResult = cachedAddressValue(forName: name) {
return .value(cachedResult)
}

@ -15,7 +15,6 @@ class ENSReverseResolver: ENSDelegateImpl {
//TODO make calls from multiple callers at the same time for the same address more efficient
func getENSNameFromResolver(forAddress address: AlphaWallet.Address) -> Promise<String> {
//TODO caching should be based on address instead of node
if let cachedResult = cachedEnsValue(forAddress: address) {
return .value(cachedResult)
}

@ -42,7 +42,6 @@ final class GetENSTextRecord: ENSDelegateImpl {
}
func getENSRecord(forName name: String, record: ENSTextRecordKey) -> Promise<String> {
//TODO caching should be based on name instead
if let cachedResult = cachedResult(forName: name, record: record) {
return .value(cachedResult)
}

Loading…
Cancel
Save