@@ -16,7 +16,6 @@ import (
1616
1717 "github.com/celestiaorg/celestia-node/header"
1818 "github.com/celestiaorg/celestia-node/libs/pidstore"
19- modfraud "github.com/celestiaorg/celestia-node/nodebuilder/fraud"
2019 "github.com/celestiaorg/celestia-node/nodebuilder/node"
2120 modp2p "github.com/celestiaorg/celestia-node/nodebuilder/p2p"
2221)
@@ -35,12 +34,11 @@ func ConstructModule[H libhead.Header[H]](tp node.Type, cfg *Config) fx.Option {
3534 fx .Provide (func (subscriber * p2p.Subscriber [H ]) libhead.Subscriber [H ] {
3635 return subscriber
3736 }),
38- fx .Provide (newSyncer [H ]),
3937 fx .Provide (fx .Annotate (
40- newFraudedSyncer [H ],
38+ newSyncer [H ],
4139 fx .OnStart (func (
4240 ctx context.Context ,
43- breaker * modfraud. ServiceBreaker [ * sync.Syncer [H ], H ],
41+ syncer * sync.Syncer [H ],
4442 ) error {
4543 // TODO(@Wondertan): This fix flakes in e2e tests
4644 // This is coming from the store asynchronity.
@@ -49,13 +47,13 @@ func ConstructModule[H libhead.Header[H]](tp node.Type, cfg *Config) fx.Option {
4947 // However, the Store doesn't makes it immediately available causing flakes
5048 // The proper fix will be in a follow up release after pruning.
5149 defer time .Sleep (time .Millisecond * 100 )
52- return breaker .Start (ctx )
50+ return syncer .Start (ctx )
5351 }),
5452 fx .OnStop (func (
5553 ctx context.Context ,
56- breaker * modfraud. ServiceBreaker [ * sync.Syncer [H ], H ],
54+ syncer * sync.Syncer [H ],
5755 ) error {
58- return breaker .Stop (ctx )
56+ return syncer .Stop (ctx )
5957 }),
6058 )),
6159 fx .Provide (fx .Annotate (
0 commit comments