Skip to content

fix(discovery): 拆分 ApplyStateTransitions 降低 S3776 认知复杂度 - #498

Merged
AlianBlank merged 1 commit into
mainfrom
feature/auto-server-source-worker-run-7778-20260922T0730
Sep 22, 2026
Merged

AlianBlank merged 1 commit into
mainfrom
feature/auto-server-source-worker-run-7778-20260922T0730

Conversation

@AlianBlank

Copy link
Copy Markdown
Collaborator

Linear: GFX-861

重构 MongoEndpointWatcher.ApplyStateTransitions,把首观测 / 已知观测五分支派发 + 路由表准入 + Evicted 兜底抽为 RecordTransition / RecordFirstObservation / EmitIncarnationChange / RecordStatusChange / EvictMissingInstances / CollectObservedInstanceIds / IncarnationChanged / RecoveredFromStale / StatusChanged / BecameStale / IsRoutable / IsFirstObservationSkipped / IsActiveOrDraining 共 13 个 private/private static 辅助方法;保持对外签名 / 行为 / 事件序列 / _knownInstances 与 _lastSeenIncarnations 更新顺序完全等价。

Linear: GFX-861
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 63ff5cd0-a019-4bdc-8260-e7e7aa4e2a19

📥 Commits

Reviewing files that changed from the base of the PR and between e569bdd and d2c5be9.

📒 Files selected for processing (1)
  • GameFrameX.NetWork.RemoteMessaging/Discovery/MongoEndpointWatcher.cs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@AlianBlank
AlianBlank merged commit 60e22b3 into main Sep 22, 2026
3 checks passed
@AlianBlank
AlianBlank deleted the feature/auto-server-source-worker-run-7778-20260922T0730 branch September 22, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant