mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-04 09:51:07 +00:00
Use Pin<Box<>> for collation future (#1792)
This commit is contained in:
1 parent
7f4646505a
commit
2b798f8571
4 files changed
+5
-4
No files matched your search
@@ -39,7 +39,7 @@ struct CollationGenerationConfig {
|
||||
/// Collate will be called with the relay chain hash the parachain should build
|
||||
/// a block on and the `ValidationData` that provides information about the state
|
||||
/// of the parachain on the relay chain.
|
||||
collator: Box<dyn Fn(Hash, &ValidationData) -> Box<dyn Future<Output = Option<Collation>>>>
|
||||
collator: Box<dyn Fn(Hash, &ValidationData) -> Pin<Box<dyn Future<Output = Option<Collation>>>>>
|
||||
para_id: ParaId,
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user