(shutdown chan<- error, err error)
| 68 | } |
| 69 | |
| 70 | func doShutdown(shutdown chan<- error, err error) { |
| 71 | select { |
| 72 | case shutdown <- err: |
| 73 | default: |
| 74 | // If there is no one listening on the shutdown channel, then the |
| 75 | // shutdown is already initiated and we can ignore these errors. |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | func startListening(connectionType, listenAddr string, port, keepAlive int) (net.Listener, error) { |
| 80 | network, addr := getNetworkAndAddr(listenAddr, port) |
no outgoing calls
no test coverage detected
searching dependent graphs…