diff --git a/pkg/transport/manager.go b/pkg/transport/manager.go index f3727c1465..87369c77e3 100644 --- a/pkg/transport/manager.go +++ b/pkg/transport/manager.go @@ -317,7 +317,7 @@ func (tm *Manager) acceptTransport(ctx context.Context, factory Factory) (*Manag entry, err := settlementResponderHandshake().Do(tm, tr, 30*time.Second) if err != nil { go func() { - if err = tr.Close(); err != nil { + if err := tr.Close(); err != nil { tm.Logger.Warnf("Failed to close transport: %s", err) } }()