MirroredRelay is a temporary rollout helper: it starts two relay backends, reads from both, and publishes every event to both with the same event id. Client-side dedup keeps loopback delivery idempotent.
| 24 | // reads from both, and publishes every event to both with the same event id. |
| 25 | // Client-side dedup keeps loopback delivery idempotent. |
| 26 | type MirroredRelay struct { |
| 27 | primary ManagedRelay |
| 28 | mirror ManagedRelay |
| 29 | } |
| 30 | |
| 31 | func NewMirroredRelay(primary, mirror ManagedRelay) *MirroredRelay { |
| 32 | return &MirroredRelay{primary: primary, mirror: mirror} |
nothing calls this directly
no outgoing calls
no test coverage detected