summaryrefslogtreecommitdiff
path: root/listeners.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2023-06-21 17:59:54 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2023-06-21 17:59:54 -0600
commit2b2addebb8cc5dfc7d4d1d34c82f3c46159fea12 (patch)
treec59228edb42936d4127f1e119bd5341da0171fab /listeners.go
parent9563666bfb93f1708b044c7b1e5d0aa91afd029a (diff)
Appease linter
Diffstat (limited to 'listeners.go')
-rw-r--r--listeners.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/listeners.go b/listeners.go
index 08bdbcf..1387d38 100644
--- a/listeners.go
+++ b/listeners.go
@@ -694,26 +694,6 @@ func RegisterNetwork(network string, getListener ListenerFunc) {
networkTypes[network] = getListener
}
-type unixListener struct {
- *net.UnixListener
- mapKey string
- count *int32 // accessed atomically
-}
-
-func (uln *unixListener) Close() error {
- newCount := atomic.AddInt32(uln.count, -1)
- if newCount == 0 {
- defer func() {
- addr := uln.Addr().String()
- unixSocketsMu.Lock()
- delete(unixSockets, uln.mapKey)
- unixSocketsMu.Unlock()
- _ = syscall.Unlink(addr)
- }()
- }
- return uln.UnixListener.Close()
-}
-
type unixConn struct {
*net.UnixConn
filename string