all: rename variables with lowercase-l/uppercase-I
See http://go/no-ell Signed-off-by: Alex Chan <alexc@tailscale.com> Updates #cleanup Change-Id: I8c976b51ce7a60f06315048b1920516129cc1d5d
This commit is contained in:
@@ -17,9 +17,9 @@ import (
|
||||
// connections and handles each one in a goroutine. Because it runs in an infinite loop,
|
||||
// this function only returns if any of the speedtests return with errors, or if the
|
||||
// listener is closed.
|
||||
func Serve(l net.Listener) error {
|
||||
func Serve(ln net.Listener) error {
|
||||
for {
|
||||
conn, err := l.Accept()
|
||||
conn, err := ln.Accept()
|
||||
if errors.Is(err, net.ErrClosed) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user