mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-24 07:26:47 +00:00
dispatch: channel reuse fix (#1237)
* Add test for dispatch channel reuse * Dispatcher - make chans bidirectional * No need to to keep the type assertion separate from the Get() * Unexport Pipe's channel and add getter
This commit is contained in:
@@ -213,7 +213,7 @@ func TestGetHoldings(t *testing.T) {
|
||||
for i := 0; i < 2; i++ {
|
||||
c := time.NewTimer(time.Second)
|
||||
select {
|
||||
case <-p.C:
|
||||
case <-p.Channel():
|
||||
case <-c.C:
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user