mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 23:16:53 +00:00
The channels for the ws multiplexer weren't made; so any interaction with it would block. Tests passed because they invasively setup the multiplexer. There are quite a few architectural risks with this implementation pattern, such as leaking an uncancellable goro in a for-select loop. Ideally WsConnect should take a cancellable context and any selects should watch for ctx.Done() That's a very invasive and pervasive change though, so this fix is as minimal and atomic as possible. Will consider opening a PR for cancellable context or improving this multiplexer pattern.
125 KiB
125 KiB