mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Parachain improvements (#1905)
* Parachain improvements - Set the parachains configuration in Rococo genesis - Don't stop the overseer when a subsystem job is stopped - Several small code changes * Remove unused functionality * Return error from the runtime instead of printing it * Apply suggestions from code review Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Update primitives/src/v1.rs Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Update primitives/src/v1.rs Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> * Fix test * Revert "Update primitives/src/v1.rs" This reverts commit 11fce2785acd1de481ca57815b8e18400f09fd52. * Revert "Update primitives/src/v1.rs" This reverts commit d6439fed4f954360c89fb1e12b73954902c76a41. * Revert "Return error from the runtime instead of printing it" This reverts commit cb4b5c0830ac516a6d54b2c24197e9354f2b98cb. * Revert "Fix test" This reverts commit 0c5fa1b5566d4cd3c55a55d485e707165ce7a59e. * Update runtime/parachains/src/runtime_api_impl/v1.rs Co-authored-by: Sergei Shulepov <sergei@parity.io> Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com> Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
@@ -18,9 +18,7 @@ use std::collections::HashMap;
|
||||
|
||||
use super::{TARGET, Result};
|
||||
|
||||
use futures::channel::oneshot;
|
||||
use futures::stream::StreamExt as _;
|
||||
use futures::task::Poll;
|
||||
use futures::{StreamExt, channel::oneshot, task::Poll};
|
||||
use log::warn;
|
||||
|
||||
use polkadot_primitives::v1::{
|
||||
|
||||
@@ -20,6 +20,7 @@ use std::task::Poll;
|
||||
|
||||
use futures::{
|
||||
StreamExt,
|
||||
FutureExt,
|
||||
channel::oneshot,
|
||||
future::BoxFuture,
|
||||
stream::FuturesUnordered,
|
||||
@@ -122,7 +123,6 @@ impl CollationRequest {
|
||||
request_id,
|
||||
} = self;
|
||||
|
||||
|
||||
match received.timeout(timeout).await {
|
||||
None => Timeout(request_id),
|
||||
Some(_) => Received(request_id),
|
||||
@@ -417,9 +417,7 @@ where
|
||||
|
||||
state.requests_info.insert(request_id, per_request);
|
||||
|
||||
state.requests_in_progress.push(Box::pin(async move {
|
||||
request.wait().await
|
||||
}));
|
||||
state.requests_in_progress.push(request.wait().boxed());
|
||||
|
||||
let wire_message = protocol_v1::CollatorProtocolMessage::RequestCollation(
|
||||
request_id,
|
||||
|
||||
Reference in New Issue
Block a user