整体同步代码
This commit is contained in:
@@ -382,11 +382,18 @@ class FullSyncPipeline:
|
||||
|
||||
async def _evaluate_consistency_for_node_type(self, node_type: str) -> Dict[str, Any]:
|
||||
strategy = next((item for item in self.strategies if item.node_type == node_type), None)
|
||||
if strategy is None:
|
||||
raise RuntimeError(f"Missing strategy for node_type={node_type}")
|
||||
depend_fields = dict(strategy.config.depend_fields) if strategy and strategy.config.depend_fields else {}
|
||||
compare_to_remote = True
|
||||
if strategy and strategy.config.update_direction == UpdateDirection.PULL:
|
||||
compare_to_remote = False
|
||||
ignore_fields = list(strategy.config.post_check_ignore_fields) if strategy else []
|
||||
ignore_fields = list(
|
||||
dict.fromkeys([
|
||||
*strategy.config.compare_ignore_fields,
|
||||
*strategy.config.post_check_ignore_fields,
|
||||
])
|
||||
)
|
||||
|
||||
result = await evaluate_consistency_for_node_type(
|
||||
node_type=node_type,
|
||||
|
||||
Reference in New Issue
Block a user