Skip to content

Commit

Permalink
change explore service back to checking no more than every 15 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Jan 12, 2024
1 parent 9cf7c05 commit f95a95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Kukai Mobile/Services/ExploreService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public class ExploreService {
}

// Request from API, no more frequently than once per day, else read cache
self.requestIfService.request(url: url, withBody: nil, ifElapsedGreaterThan: RequestIfService.TimeConstants.second.rawValue, forKey: exploreCacheKey, responseType: ExploreResponse.self, isSecure: true) { [weak self] result in
self.requestIfService.request(url: url, withBody: nil, ifElapsedGreaterThan: RequestIfService.TimeConstants.fifteenMinute.rawValue, forKey: exploreCacheKey, responseType: ExploreResponse.self, isSecure: true) { [weak self] result in
guard let response = try? result.get() else {
completion(Result.failure(result.getFailure()))
return
Expand Down

0 comments on commit f95a95b

Please sign in to comment.