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