From 5f2599b08017c08a91e671017aa7d286dfc0e780 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Tue, 18 Nov 2025 17:51:16 -0600 Subject: [PATCH] run all protocols --- router.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/router.go b/router.go index 3776581..f082217 100644 --- a/router.go +++ b/router.go @@ -38,6 +38,7 @@ func NewRouter(ctx context.Context, config Config) (*Router, error) { func (r *Router) Run() { for _, protocolInstance := range r.ProtocolInstances { - protocolInstance.Run(r.Context) + go protocolInstance.Run(r.Context) } + <-r.Context.Done() }