mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
checkpoint: File edit:
🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
1 parent
c7eb75fba8
commit
90be7ddac2
1 file changed
+5
@@ -21,6 +21,11 @@ export class TopologyManager extends EventEmitter implements ITopologyManager {
|
||||
private adjacencyList: Map<string, Set<string>> = new Map();
|
||||
private lastRebalance: Date = new Date();
|
||||
|
||||
// O(1) role-based indexes for performance (fixes O(n) find operations)
|
||||
private roleIndex: Map<TopologyNode['role'], Set<string>> = new Map();
|
||||
private queenNode: TopologyNode | null = null;
|
||||
private coordinatorNode: TopologyNode | null = null;
|
||||
|
||||
constructor(config: Partial<TopologyConfig> = {}) {
|
||||
super();
|
||||
this.config = {
|
||||
|
||||
Reference in new issue
Block a user