@@ -5,11 +5,7 @@ use p2p::P2pListenEvent;
5
5
6
6
use crate :: action:: CheckTimeoutsAction ;
7
7
use crate :: block_producer:: vrf_evaluator:: BlockProducerVrfEvaluatorEvaluationSuccessAction ;
8
- use crate :: external_snark_worker:: {
9
- ExternalSnarkWorkerErrorAction , ExternalSnarkWorkerEvent , ExternalSnarkWorkerKilledAction ,
10
- ExternalSnarkWorkerStartedAction , ExternalSnarkWorkerWorkCancelledAction ,
11
- ExternalSnarkWorkerWorkErrorAction , ExternalSnarkWorkerWorkResultAction ,
12
- } ;
8
+ use crate :: external_snark_worker:: ExternalSnarkWorkerEvent ;
13
9
use crate :: p2p:: channels:: best_tip:: P2pChannelsBestTipReadyAction ;
14
10
use crate :: p2p:: channels:: rpc:: P2pChannelsRpcReadyAction ;
15
11
use crate :: p2p:: channels:: snark:: {
@@ -48,7 +44,7 @@ use crate::rpc::{
48
44
use crate :: snark:: block_verify:: SnarkBlockVerifyAction ;
49
45
use crate :: snark:: work_verify:: SnarkWorkVerifyAction ;
50
46
use crate :: snark:: SnarkEvent ;
51
- use crate :: { Service , Store } ;
47
+ use crate :: { ExternalSnarkWorkerAction , Service , Store } ;
52
48
53
49
use super :: {
54
50
Event , EventSourceAction , EventSourceActionWithMeta , EventSourceNewEventAction ,
@@ -304,22 +300,22 @@ pub fn event_source_effects<S: Service>(store: &mut Store<S>, action: EventSourc
304
300
} ,
305
301
Event :: ExternalSnarkWorker ( e) => match e {
306
302
ExternalSnarkWorkerEvent :: Started => {
307
- store. dispatch ( ExternalSnarkWorkerStartedAction { } ) ;
303
+ store. dispatch ( ExternalSnarkWorkerAction :: Started ) ;
308
304
}
309
305
ExternalSnarkWorkerEvent :: Killed => {
310
- store. dispatch ( ExternalSnarkWorkerKilledAction { } ) ;
306
+ store. dispatch ( ExternalSnarkWorkerAction :: Killed ) ;
311
307
}
312
308
ExternalSnarkWorkerEvent :: WorkResult ( result) => {
313
- store. dispatch ( ExternalSnarkWorkerWorkResultAction { result } ) ;
309
+ store. dispatch ( ExternalSnarkWorkerAction :: WorkResult { result } ) ;
314
310
}
315
311
ExternalSnarkWorkerEvent :: WorkError ( error) => {
316
- store. dispatch ( ExternalSnarkWorkerWorkErrorAction { error } ) ;
312
+ store. dispatch ( ExternalSnarkWorkerAction :: WorkError { error } ) ;
317
313
}
318
314
ExternalSnarkWorkerEvent :: WorkCancelled => {
319
- store. dispatch ( ExternalSnarkWorkerWorkCancelledAction { } ) ;
315
+ store. dispatch ( ExternalSnarkWorkerAction :: WorkCancelled ) ;
320
316
}
321
317
ExternalSnarkWorkerEvent :: Error ( error) => {
322
- store. dispatch ( ExternalSnarkWorkerErrorAction {
318
+ store. dispatch ( ExternalSnarkWorkerAction :: Error {
323
319
error,
324
320
permanent : false ,
325
321
} ) ;
0 commit comments