@@ -560,7 +560,7 @@ def _commitWithThread(self, transaction: CommitTransaction):
560560
561561 record_info_by_name = self .record_info_by_name (record_infos , ioc_info )
562562 self .update_ioc_infos (transaction , ioc_info , records_to_delete , record_info_by_name )
563- poll (__updateCF__ , self , record_info_by_name , records_to_delete , ioc_info )
563+ poll (_update_channelfinder , self , record_info_by_name , records_to_delete , ioc_info )
564564
565565 def remove_channel (self , recordName : str , iocid : str ) -> None :
566566 """Remove channel from self.iocs and self.channel_ioc_ids.
@@ -1039,7 +1039,7 @@ def create_new_channel(
10391039 _log .debug ("Add new alias: %s from %s" , alias , channel_name )
10401040
10411041
1042- def __updateCF__ (
1042+ def _update_channelfinder (
10431043 processor : CFProcessor , record_info_by_name : Dict [str , RecordInfo ], records_to_delete , ioc_info : IocInfo
10441044) -> None :
10451045 """Update Channelfinder with the provided IOC and Record information.
@@ -1070,7 +1070,7 @@ def __updateCF__(
10701070 raise Exception (f"Missing hostName { ioc_info .hostname } or iocName { ioc_info .ioc_name } " )
10711071
10721072 if processor .cancelled :
1073- raise defer .CancelledError (f"Processor cancelled in __updateCF__ for { ioc_info } " )
1073+ raise defer .CancelledError (f"Processor cancelled in _update_channelfinder for { ioc_info } " )
10741074
10751075 channels : List [CFChannel ] = []
10761076 # A list of channels in channelfinder with the associated hostName and iocName
@@ -1140,7 +1140,7 @@ def __updateCF__(
11401140 if old_channels and len (old_channels ) != 0 :
11411141 cf_set_chunked (client , channels , cf_config .cf_query_limit )
11421142 if processor .cancelled :
1143- raise defer .CancelledError (f"Processor cancelled in __updateCF__ for { ioc_info } " )
1143+ raise defer .CancelledError (f"Processor cancelled in _update_channelfinder for { ioc_info } " )
11441144
11451145
11461146def cf_set_chunked (client : ChannelFinderClient , channels : List [CFChannel ], chunk_size = 10000 ) -> None :
0 commit comments