Skip to content

Commit 3d28624

Browse files
committed
fmt
1 parent 83254f4 commit 3d28624

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

src/pipelines/events.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ impl<P: Platform> EventsBus<P> {
2929
}
3030

3131
/// Returns a stream that yields events of type `E`.
32-
pub(super) fn subscribe<E>(&self) -> impl Stream<Item = E> + Send + Sync + 'static
32+
pub(super) fn subscribe<E>(
33+
&self,
34+
) -> impl Stream<Item = E> + Send + Sync + 'static
3335
where
3436
E: Clone + Any + Send + Sync + 'static,
3537
{

src/pipelines/exec/scope.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ pub(crate) struct RootScope<P: Platform> {
7070

7171
impl<P: Platform> RootScope<P> {
7272
/// Initialize all scopes in a given top-level pipeline.
73-
pub(crate) fn new(pipeline: &Pipeline<P>, init_checkpoint: &Checkpoint<P>) -> Self {
73+
pub(crate) fn new(
74+
pipeline: &Pipeline<P>,
75+
init_checkpoint: &Checkpoint<P>,
76+
) -> Self {
7477
let current = RefCell::new(StepPath::empty());
7578
let root = Scope::rooted_at(pipeline, init_checkpoint);
7679
let root = RwLock::new(root);

src/pipelines/service.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ where
117117
&self.provider
118118
}
119119

120-
pub(super) const fn node_config(&self) -> &NodeConfig<types::ChainSpec<Plat>> {
120+
pub(super) const fn node_config(
121+
&self,
122+
) -> &NodeConfig<types::ChainSpec<Plat>> {
121123
&self.node_config
122124
}
123125

src/pipelines/step/instance.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ impl<P: Platform> StepInstance<P> {
261261

262262
/// This is invoked exactly once when a pipeline is instantiated as a payload
263263
/// builder service.
264-
pub(crate) fn setup(&self, ctx: InitContext<P>) -> Result<(), PayloadBuilderError> {
264+
pub(crate) fn setup(
265+
&self,
266+
ctx: InitContext<P>,
267+
) -> Result<(), PayloadBuilderError> {
265268
(self.setup_fn)(&self.instance, ctx)
266269
}
267270

src/pool/host.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ impl<P: Platform> HostNode<P> {
145145

146146
#[cfg(feature = "test-utils")]
147147
impl<P: PlatformWithRpcTypes> HostNode<P> {
148-
pub(crate) fn attach_to_test_node<C: crate::test_utils::ConsensusDriver<P>>(
148+
pub(crate) fn attach_to_test_node<
149+
C: crate::test_utils::ConsensusDriver<P>,
150+
>(
149151
self: &Arc<Self>,
150152
node: &crate::test_utils::LocalNode<P, C>,
151153
order_pool: OrderPool<P>,

src/pool/setup.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ struct SystemPoolWrapper<P: Platform, Builder> {
141141
}
142142

143143
impl<P: Platform, Builder> SystemPoolWrapper<P, Builder> {
144-
pub(crate) fn new<Node>(builder: Builder, order_pool: Arc<OrderPoolInner<P>>) -> Self
144+
pub(crate) fn new<Node>(
145+
builder: Builder,
146+
order_pool: Arc<OrderPoolInner<P>>,
147+
) -> Self
145148
where
146149
Builder: PoolBuilderBounds<P, Node>,
147150
Node: FullNodeTypes<Types: NodeTypes<Primitives = types::Primitives<P>>>,

0 commit comments

Comments
 (0)