Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.11 breaks async api #222

Closed
Colerar opened this issue Oct 20, 2023 · 1 comment · Fixed by #223
Closed

v0.11 breaks async api #222

Colerar opened this issue Oct 20, 2023 · 1 comment · Fixed by #223

Comments

@Colerar
Copy link
Contributor

Colerar commented Oct 20, 2023

    = help: the trait `Sync` is not implemented for `dyn cloudflare::framework::endpoint::Endpoint<Vec<DnsRecord>>`
note: future is not `Send` as this value is used across an await
   --> src/models.rs:238:18
    |
231 |                   .request(&dns::ListDnsRecords {
    |  __________________________-
232 | |                     zone_identifier,
233 | |                     params: dns::ListDnsRecordsParams {
234 | |                         name: Some(dns_name.clone()),
235 | |                         ..Default::default()
236 | |                     },
237 | |                 })
    | |_________________- has type `&dyn cloudflare::framework::endpoint::Endpoint<Vec<DnsRecord>>` which is not `Send`
238 |                   .await
    |                    ^^^^^ await occurs here, with the value maybe used later
...
245 |               };
    |                - the value is later dropped here
@Colerar
Copy link
Contributor Author

Colerar commented Oct 30, 2023

How about publishing a new patch version for this issue? Because of this issue the async API is almost unavailable for version 0.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant