File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
crates/sui-data-ingestion-core/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ pub trait Worker: Send + Sync {
30
30
type Result : Send + Sync + Clone ;
31
31
async fn process_checkpoint_arc (
32
32
& self ,
33
- checkpoint : Arc < CheckpointData > ,
33
+ checkpoint : & Arc < CheckpointData > ,
34
34
) -> Result < Self :: Result > {
35
- self . process_checkpoint ( & checkpoint) . await
35
+ self . process_checkpoint ( checkpoint) . await
36
36
}
37
37
/// There is no need to implement this if you implement process_checkpoint_arc. The WorkerPool
38
38
/// will only call process_checkpoint_arc. This method was left in place for backwards
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ impl<W: Worker + 'static> WorkerPool<W> {
84
84
let result = backoff:: future:: retry( backoff, || async {
85
85
worker
86
86
. clone( )
87
- . process_checkpoint_arc( checkpoint. clone ( ) )
87
+ . process_checkpoint_arc( & checkpoint)
88
88
. await
89
89
. map_err( |err| {
90
90
info!( "transient worker execution error {:?} for checkpoint {}" , err, sequence_number) ;
You can’t perform that action at this time.
0 commit comments