Fix binstalk-git-repo-api

Remove `Sync` bound on returned `Future`, since `tokio::spawn` does not require it

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-18 23:22:22 +10:00
parent da9de8f14c
commit 54e6ca768f
No known key found for this signature in database
GPG key ID: 76D1E687CA3C4928
4 changed files with 8 additions and 8 deletions

View file

@ -204,8 +204,8 @@ impl GhApiClient {
where
GraphQLFn: Fn(&remote::Client, &T, &str) -> GraphQLFut,
RestfulFn: Fn(&remote::Client, &T, Option<&str>) -> RestfulFut,
GraphQLFut: Future<Output = Result<U, GhApiError>> + Send + Sync + 'static,
RestfulFut: Future<Output = Result<U, GhApiError>> + Send + Sync + 'static,
GraphQLFut: Future<Output = Result<U, GhApiError>> + Send + 'static,
RestfulFut: Future<Output = Result<U, GhApiError>> + Send + 'static,
{
self.check_retry_after()?;