rwadurian/backend/mpc-system/services/message-router
hailin 549b21f298 fix(message-router): prevent subscription race condition on gRPC reconnect
When a party re-subscribes (e.g., Android reconnects), the old gRPC stream's
defer Unsubscribe() was accidentally removing the NEW subscription from the
subscribers map, causing the party to miss session_started events.

Fix:
- Subscribe() now returns the channel to the caller
- Unsubscribe() now takes the channel and only removes if it matches
- This prevents older streams from removing newer subscriptions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 10:04:11 -08:00
..
adapters fix(message-router): prevent subscription race condition on gRPC reconnect 2026-01-01 10:04:11 -08:00
application/use_cases refactor(mpc-system): migrate to party-driven architecture with PartyID-based routing 2025-12-05 08:11:28 -08:00
cmd/server feat(mpc-system): add signing parties configuration and delegate signing support 2025-12-05 22:47:55 -08:00
domain fix(message-router): prevent subscription race condition on gRPC reconnect 2026-01-01 10:04:11 -08:00
Dockerfile chore(mpc-system): update Dockerfiles to Go 1.24 and fix line endings 2025-12-05 16:40:32 -08:00