MCPcopy
hub / github.com/multica-ai/multica / MirroredRelay

Struct MirroredRelay

server/internal/realtime/relay_lifecycle.go:26–29  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

24// reads from both, and publishes every event to both with the same event id.
25// Client-side dedup keeps loopback delivery idempotent.
26type MirroredRelay struct {
27 primary ManagedRelay
28 mirror ManagedRelay
29}
30
31func NewMirroredRelay(primary, mirror ManagedRelay) *MirroredRelay {
32 return &MirroredRelay{primary: primary, mirror: mirror}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected