linter: fix context package

This commit is contained in:
Slyghtning
2025-11-20 10:55:44 +01:00
parent e351fa6928
commit 092da9d450
3 changed files with 4 additions and 3 deletions

View File

@@ -2,6 +2,7 @@ package test
import ( import (
"bytes" "bytes"
"context"
"sync" "sync"
"time" "time"
@@ -10,7 +11,6 @@ import (
"github.com/lightninglabs/lndclient" "github.com/lightninglabs/lndclient"
"github.com/lightningnetwork/lnd/chainntnfs" "github.com/lightningnetwork/lnd/chainntnfs"
"github.com/lightningnetwork/lnd/lnrpc/chainrpc" "github.com/lightningnetwork/lnd/lnrpc/chainrpc"
"golang.org/x/net/context"
) )
type mockChainNotifier struct { type mockChainNotifier struct {

View File

@@ -1,6 +1,7 @@
package test package test
import ( import (
"context"
"crypto/rand" "crypto/rand"
"encoding/hex" "encoding/hex"
"fmt" "fmt"
@@ -17,7 +18,6 @@ import (
"github.com/lightningnetwork/lnd/lntypes" "github.com/lightningnetwork/lnd/lntypes"
"github.com/lightningnetwork/lnd/routing/route" "github.com/lightningnetwork/lnd/routing/route"
"github.com/lightningnetwork/lnd/zpay32" "github.com/lightningnetwork/lnd/zpay32"
"golang.org/x/net/context"
) )
type mockLightningClient struct { type mockLightningClient struct {

View File

@@ -1,9 +1,10 @@
package test package test
import ( import (
"context"
"github.com/lightninglabs/lndclient" "github.com/lightninglabs/lndclient"
"github.com/lightningnetwork/lnd/lntypes" "github.com/lightningnetwork/lnd/lntypes"
"golang.org/x/net/context"
) )
type mockRouter struct { type mockRouter struct {