From 4cf5ac3060a7a6d0156299ee7d812be2d6e5a1c0 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Tue, 3 Mar 2020 19:38:01 -0800 Subject: [PATCH] ipn/ipnserver: remove unnecessary closure parameter --- ipn/ipnserver/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipn/ipnserver/server.go b/ipn/ipnserver/server.go index de99244c2..1b11ac307 100644 --- a/ipn/ipnserver/server.go +++ b/ipn/ipnserver/server.go @@ -168,7 +168,7 @@ func Run(rctx context.Context, logf logger.Logf, logid string, opts Options, e w ctx, cancel = context.WithCancel(rctx) oldS = s - go func(ctx context.Context, bs *ipn.BackendServer, s net.Conn, i int) { + go func(ctx context.Context, s net.Conn, i int) { logf := logger.WithPrefix(logf, fmt.Sprintf("%d: ", i)) pump(logf, ctx, bs, s) if !opts.SurviveDisconnects || bs.GotQuit { @@ -177,7 +177,7 @@ func Run(rctx context.Context, logf logger.Logf, logid string, opts Options, e w } // Quitting not allowed, just keep going. bs.GotQuit = false - }(ctx, bs, s, i) + }(ctx, s, i) bo.BackOff(ctx, nil) }