@@ -132,6 +132,7 @@ pub struct Worker {
132
132
pub transaction_filter : TransactionFilter ,
133
133
pub grpc_response_item_timeout_in_secs : u64 ,
134
134
pub deprecated_tables : TableFlags ,
135
+ pub db_row_name : String ,
135
136
}
136
137
137
138
impl Worker {
@@ -155,6 +156,7 @@ impl Worker {
155
156
transaction_filter : TransactionFilter ,
156
157
grpc_response_item_timeout_in_secs : u64 ,
157
158
deprecated_tables : HashSet < String > ,
159
+ db_row_name : String ,
158
160
) -> Result < Self > {
159
161
let processor_name = processor_config. name ( ) ;
160
162
info ! ( processor_name = processor_name, "[Parser] Kicking off" ) ;
@@ -200,6 +202,7 @@ impl Worker {
200
202
transaction_filter,
201
203
grpc_response_item_timeout_in_secs,
202
204
deprecated_tables : deprecated_tables_flags,
205
+ db_row_name,
203
206
} )
204
207
}
205
208
@@ -332,6 +335,7 @@ impl Worker {
332
335
self . deprecated_tables ,
333
336
self . db_pool . clone ( ) ,
334
337
maybe_gap_detector_sender,
338
+ self . db_row_name . clone ( ) ,
335
339
) ;
336
340
337
341
let gap_detector = if is_parquet_processor {
@@ -376,6 +380,7 @@ impl Worker {
376
380
receiver. clone ( ) ,
377
381
gap_detector_sender. clone ( ) ,
378
382
gap_detector. clone ( ) ,
383
+ self . db_row_name . clone ( ) ,
379
384
)
380
385
. await ;
381
386
processor_tasks. push ( join_handle) ;
@@ -401,6 +406,7 @@ impl Worker {
401
406
receiver : kanal:: AsyncReceiver < TransactionsPBResponse > ,
402
407
gap_detector_sender : AsyncSender < ProcessingResult > ,
403
408
mut gap_detector : GapDetector ,
409
+ db_row_name : String ,
404
410
) -> JoinHandle < ( ) > {
405
411
let processor_name = self . processor_config . name ( ) ;
406
412
let stream_address = self . indexer_grpc_data_service_address . to_string ( ) ;
@@ -415,6 +421,7 @@ impl Worker {
415
421
self . deprecated_tables ,
416
422
self . db_pool . clone ( ) ,
417
423
Some ( gap_detector_sender. clone ( ) ) ,
424
+ "" . to_string ( ) ,
418
425
)
419
426
} else {
420
427
build_processor (
@@ -423,6 +430,7 @@ impl Worker {
423
430
self . deprecated_tables ,
424
431
self . db_pool . clone ( ) ,
425
432
None ,
433
+ db_row_name,
426
434
)
427
435
} ;
428
436
@@ -900,6 +908,7 @@ pub fn build_processor_for_testing(
900
908
deprecated_tables,
901
909
db_pool,
902
910
None ,
911
+ "" . to_string ( ) ,
903
912
)
904
913
}
905
914
@@ -914,6 +923,7 @@ pub fn build_processor(
914
923
deprecated_tables : TableFlags ,
915
924
db_pool : ArcDbPool ,
916
925
gap_detector_sender : Option < AsyncSender < ProcessingResult > > , // Parquet only
926
+ db_row_name : String ,
917
927
) -> Processor {
918
928
match config {
919
929
ProcessorConfig :: AccountTransactionsProcessor => Processor :: from (
@@ -938,7 +948,9 @@ pub fn build_processor(
938
948
per_table_chunk_sizes,
939
949
deprecated_tables,
940
950
) ) ,
941
- ProcessorConfig :: MonitoringProcessor => Processor :: from ( MonitoringProcessor :: new ( db_pool) ) ,
951
+ ProcessorConfig :: MonitoringProcessor => {
952
+ Processor :: from ( MonitoringProcessor :: new ( db_pool, db_row_name) )
953
+ } ,
942
954
ProcessorConfig :: NftMetadataProcessor ( config) => {
943
955
Processor :: from ( NftMetadataProcessor :: new ( db_pool, config. clone ( ) ) )
944
956
} ,
0 commit comments