Add todo comment.

This commit is contained in:
Tom Alexander 2022-05-12 10:12:37 -04:00
parent 1be697b8bf
commit 155fb7ae00
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -41,6 +41,10 @@ impl GithubEndpointWatcher {
pub async fn skip_results_before_now(&mut self) -> Result<(), Box<dyn std::error::Error>> {
// 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?;