(ctx context.Context, errc <-chan error)
| 429 | } |
| 430 | |
| 431 | func awaitError(ctx context.Context, errc <-chan error) error { |
| 432 | select { |
| 433 | case <-ctx.Done(): |
| 434 | return ctx.Err() |
| 435 | case err := <-errc: |
| 436 | return err |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | type socketConn struct { |
| 441 | *websocket.Conn |
no test coverage detected