Closed nagisa closed 3 years ago
I have had a look and believe this field in the Error type is responsible for the issue.
When digging deeper, I noticed that it is populated by code like this self.hub.auth.borrow_mut().token(self._scopes.keys())
, which goes back to the yup-oauth2
authenticator's token()
method, which itself does not implement Send + Sync
. This certainly is an oversight, and one which can't easily be fixed in this repository.
yup-oauth
3.0 beta seems to be migrating to futures, which also fixes this problem. Thus I believe at some point when this repository switches to async, the issue will be fixed at last.
Related to #189
yup_oauth is now at 3.1
so upgrading it would fix this.
@nagisa I took a look and as suspected, migrating from 1.0 to 3.0 is quite some non-trivial work that is likely to affect consumers of this library as well. Probably this is already a non-issue in the next iteration of the google-apis, even though they are not quite ready for everyone just yet.
Is it compatible with anyhow
? The failure
crate has been deprecated I believe in favour of others.
If
google_pubsub1::Error
is used in afailure
error as follows will be reported: