Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit cb0749b

Browse files
committed
CollationGenerationConfig closure is now optional
1 parent 3772536 commit cb0749b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/collator/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ pub mod relay_chain_driven {
200200
let config = CollationGenerationConfig {
201201
key,
202202
para_id,
203-
collator: Box::new(move |relay_parent, validation_data| {
203+
collator: Some(Box::new(move |relay_parent, validation_data| {
204204
// Cloning the channel on each usage effectively makes the channel
205205
// unbounded. The channel is actually bounded by the block production
206206
// and consensus systems of Polkadot, which limits the amount of possible
@@ -218,7 +218,7 @@ pub mod relay_chain_driven {
218218

219219
this_rx.await.ok().flatten()
220220
})
221-
}),
221+
})),
222222
};
223223

224224
overseer_handle

0 commit comments

Comments
 (0)