From 155fb7ae0010eee263b2f5e6e92bdaf575737e56 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Thu, 12 May 2022 10:12:37 -0400 Subject: [PATCH] Add todo comment. --- src/githubctl/github_endpoint_watcher.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/githubctl/github_endpoint_watcher.rs b/src/githubctl/github_endpoint_watcher.rs index b5c1ab5..fbed002 100644 --- a/src/githubctl/github_endpoint_watcher.rs +++ b/src/githubctl/github_endpoint_watcher.rs @@ -41,6 +41,10 @@ impl GithubEndpointWatcher { pub async fn skip_results_before_now(&mut self) -> Result<(), Box> { // This will incur an API call to get the headers for ETAG and // last modified at but it will throw away the results. + + // TODO: Can this be done without a request? We wouldn't get + // an ETAG but we should be able to calculate our own date + // string for last modified. let request = self.build_request()?; self.sleep_until_next_poll().await?; self.sleep_until_ratelimit().await?;