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

Update of subxt and subxt codegen cause break in Relayer #80

Open
coax1d opened this issue Nov 7, 2023 · 0 comments
Open

Update of subxt and subxt codegen cause break in Relayer #80

coax1d opened this issue Nov 7, 2023 · 0 comments
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@coax1d
Copy link
Collaborator

coax1d commented Nov 7, 2023

When upgrading Subxt via cargo update the Relayer fails to compile.

error[E0599]: no method named `wait_for_in_block` found for struct `TxProgress` in the current scope
   --> xcmp_relayer/src/main.rs:103:20
    |
103 |     match tx_progress.wait_for_in_block().await {
    |                       ^^^^^^^^^^^^^^^^^ method not found in `TxProgress<PolkadotConfig, OnlineClient<PolkadotConfig>>`

error[E0599]: no method named `wait_for_in_block` found for struct `TxProgress` in the current scope
   --> xcmp_relayer/src/main.rs:136:20
    |
136 |     match tx_progress.wait_for_in_block().await {
    |                       ^^^^^^^^^^^^^^^^^ method not found in `TxProgress<PolkadotConfig, OnlineClient<PolkadotConfig>>`

warning: unused variable: `block`
   --> xcmp_relayer/src/main.rs:277:6
    |
277 |     let block = client.subxt_client.blocks().at_latest().await?;
    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_block`
    |
    = note: `#[warn(unused_variables)]` on by default

error: future cannot be sent between threads safely
   --> xcmp_relayer/src/main.rs:169:14
    |
169 |       task::spawn(async move {
    |  _________________^
170 | |         let mut blocks_sub = client.subxt_client.blocks().subscribe_best().await?;
171 | |
172 | |         while let Some(block) = blocks_sub.next().await {
...   |
181 | |         Ok::<(), anyhow::Error>(())
182 | |     });
    | |_____^ future created by async block is not `Send`
@coax1d coax1d added bug Something isn't working dependencies Pull requests that update a dependency file labels Nov 7, 2023
@coax1d coax1d self-assigned this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

No branches or pull requests

1 participant