mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
run all protocols
This commit is contained in:
@@ -38,6 +38,7 @@ func NewRouter(ctx context.Context, config Config) (*Router, error) {
|
|||||||
|
|
||||||
func (r *Router) Run() {
|
func (r *Router) Run() {
|
||||||
for _, protocolInstance := range r.ProtocolInstances {
|
for _, protocolInstance := range r.ProtocolInstances {
|
||||||
protocolInstance.Run(r.Context)
|
go protocolInstance.Run(r.Context)
|
||||||
}
|
}
|
||||||
|
<-r.Context.Done()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user