Skip to content

Commit a93ea43

Browse files
committed
static record_info_by_name
1 parent 5d021fc commit a93ea43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/recceiver/cfstore.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,8 @@ def transaction_to_record_infos(self, ioc_info: IocInfo, transaction: CommitTran
468468
)
469469
return record_infos
470470

471-
def record_info_by_name(self, record_infos: Dict[str, RecordInfo], ioc_info: IocInfo) -> Dict[str, RecordInfo]:
471+
@staticmethod
472+
def record_info_by_name(record_infos: Dict[str, RecordInfo], ioc_info: IocInfo) -> Dict[str, RecordInfo]:
472473
"""Create a dictionary of RecordInfo objects keyed by pvName.
473474
474475
Args:
@@ -564,7 +565,7 @@ def _commit_with_thread(self, transaction: CommitTransaction):
564565
records_to_delete = list(transaction.records_to_delete)
565566
_log.debug("Delete records: %s", records_to_delete)
566567

567-
record_info_by_name = self.record_info_by_name(record_infos, ioc_info)
568+
record_info_by_name = CFProcessor.record_info_by_name(record_infos, ioc_info)
568569
self.update_ioc_infos(transaction, ioc_info, records_to_delete, record_info_by_name)
569570
poll(_update_channelfinder, self, record_info_by_name, records_to_delete, ioc_info)
570571

0 commit comments

Comments
 (0)