File tree Expand file tree Collapse file tree
crates/processors/src/processors Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434
3535 fn task_identifier ( & self , event : & Event ) -> TaskId {
3636 let mut hasher = DefaultHasher :: new ( ) ;
37+ event. from_address . hash ( & mut hasher) ;
3738 let keys = Vec :: < Felt > :: cairo_deserialize ( & event. data , 0 ) . unwrap_or_else ( |e| {
3839 panic ! ( "Expected EventEmitted keys to be well formed: {:?}" , e) ;
3940 } ) ;
4748
4849 fn task_dependencies ( & self , event : & Event ) -> Vec < TaskId > {
4950 let mut hasher = DefaultHasher :: new ( ) ;
51+ event. from_address . hash ( & mut hasher) ;
5052 // selector
5153 event. keys [ 1 ] . hash ( & mut hasher) ;
5254 vec ! [ hasher. finish( ) ]
Original file line number Diff line number Diff line change 5252 } ;
5353
5454 let mut hasher = DefaultHasher :: new ( ) ;
55+ event. from_address . hash ( & mut hasher) ;
5556 selector. hash ( & mut hasher) ;
5657 hasher. finish ( )
5758 }
Original file line number Diff line number Diff line change 5656 } ;
5757
5858 let mut hasher = DefaultHasher :: new ( ) ;
59+ event. from_address . hash ( & mut hasher) ;
5960 selector. hash ( & mut hasher) ;
6061 hasher. finish ( )
6162 }
Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ where
3030
3131 fn task_identifier ( & self , event : & Event ) -> TaskId {
3232 let mut hasher = DefaultHasher :: new ( ) ;
33+ event. from_address . hash ( & mut hasher) ;
3334 event. keys [ 1 ] . hash ( & mut hasher) ;
3435 event. keys [ 2 ] . hash ( & mut hasher) ;
3536 hasher. finish ( )
3637 }
3738
3839 fn task_dependencies ( & self , event : & Event ) -> Vec < TaskId > {
3940 let mut hasher = DefaultHasher :: new ( ) ;
41+ event. from_address . hash ( & mut hasher) ;
4042 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the model selector to create a unique ID
4143 vec ! [ hasher. finish( ) ] // Return the dependency on the register_model task
4244 }
Original file line number Diff line number Diff line change @@ -32,13 +32,15 @@ where
3232
3333 fn task_identifier ( & self , event : & Event ) -> TaskId {
3434 let mut hasher = DefaultHasher :: new ( ) ;
35+ event. from_address . hash ( & mut hasher) ;
3536 event. keys [ 1 ] . hash ( & mut hasher) ;
3637 event. keys [ 2 ] . hash ( & mut hasher) ;
3738 hasher. finish ( )
3839 }
3940
4041 fn task_dependencies ( & self , event : & Event ) -> Vec < TaskId > {
4142 let mut hasher = DefaultHasher :: new ( ) ;
43+ event. from_address . hash ( & mut hasher) ;
4244 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the model selector to create a unique ID
4345 vec ! [ hasher. finish( ) ] // Return the dependency on the register_model task
4446 }
Original file line number Diff line number Diff line change 3535
3636 fn task_identifier ( & self , event : & Event ) -> TaskId {
3737 let mut hasher = DefaultHasher :: new ( ) ;
38+ event. from_address . hash ( & mut hasher) ;
3839 // model selector
3940 event. keys [ 1 ] . hash ( & mut hasher) ;
4041 // entity id
4445
4546 fn task_dependencies ( & self , event : & Event ) -> Vec < TaskId > {
4647 let mut hasher = DefaultHasher :: new ( ) ;
48+ event. from_address . hash ( & mut hasher) ;
4749 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the model selector to create a unique ID
4850 vec ! [ hasher. finish( ) ] // Return the dependency on the register_model task
4951 }
Original file line number Diff line number Diff line change 3333
3434 fn task_identifier ( & self , event : & Event ) -> TaskId {
3535 let mut hasher = DefaultHasher :: new ( ) ;
36+ event. from_address . hash ( & mut hasher) ;
3637 // model selector
3738 event. keys [ 1 ] . hash ( & mut hasher) ;
3839 // entity id
4243
4344 fn task_dependencies ( & self , event : & Event ) -> Vec < TaskId > {
4445 let mut hasher = DefaultHasher :: new ( ) ;
46+ event. from_address . hash ( & mut hasher) ;
4547 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the model selector to create a unique ID
4648 vec ! [ hasher. finish( ) ] // Return the dependency on the register_model task
4749 }
Original file line number Diff line number Diff line change 3737
3838 fn task_identifier ( & self , event : & Event ) -> TaskId {
3939 let mut hasher = DefaultHasher :: new ( ) ;
40+ event. from_address . hash ( & mut hasher) ;
4041 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the event selector to create a unique ID
4142 hasher. finish ( )
4243 }
Original file line number Diff line number Diff line change 3838
3939 fn task_identifier ( & self , event : & Event ) -> TaskId {
4040 let mut hasher = DefaultHasher :: new ( ) ;
41+ event. from_address . hash ( & mut hasher) ;
4142 event. keys [ 1 ] . hash ( & mut hasher) ; // Use the model selector to create a unique ID
4243 hasher. finish ( )
4344 }
You can’t perform that action at this time.
0 commit comments