mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +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
2a0089c247
commit
2ecdfe33da
1 file changed
+4
-5
@@ -373,11 +373,10 @@ export class FederationHub extends EventEmitter {
|
||||
unregisterSwarm(swarmId: SwarmId): boolean {
|
||||
const removed = this.swarms.delete(swarmId);
|
||||
if (removed) {
|
||||
// Terminate all ephemeral agents in this swarm
|
||||
for (const agent of this.ephemeralAgents.values()) {
|
||||
if (agent.swarmId === swarmId) {
|
||||
this.terminateAgent(agent.id);
|
||||
}
|
||||
// Terminate all ephemeral agents in this swarm using index - O(k)
|
||||
const agentIds = this.getAgentIdsBySwarm(swarmId);
|
||||
for (const agentId of agentIds) {
|
||||
this.terminateAgent(agentId);
|
||||
}
|
||||
this.emitEvent('swarm_left', swarmId);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user