| 664 | } |
| 665 | |
| 666 | type derpSetLoop struct { |
| 667 | logger slog.Logger |
| 668 | rewriter DERPMapRewriter // optional |
| 669 | setter DERPMapSetter |
| 670 | client DERPClient |
| 671 | |
| 672 | sync.Mutex |
| 673 | closed bool |
| 674 | errChan chan error |
| 675 | recvLoopDone chan struct{} |
| 676 | } |
| 677 | |
| 678 | func (l *derpSetLoop) Close(ctx context.Context) error { |
| 679 | l.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected