mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-03-06 00:37:42 +08:00
simplify channel read for single select case
This commit is contained in:
parent
de96e3f88e
commit
26a61db092
@ -3470,11 +3470,9 @@ func TestBloomRouting(t *testing.T) {
|
||||
|
||||
go func() {
|
||||
for range sub {
|
||||
select {
|
||||
case err := <-errch:
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
err := <-errch
|
||||
if err != nil {
|
||||
errs = append(errs, err)
|
||||
}
|
||||
}
|
||||
g.Done()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user