From 7dab8b8f2d7fb830a290ca94de13af7a87733917 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Sat, 2 Feb 2019 15:45:44 +0100 Subject: [PATCH 1/2] lnrpc/autopilotrpc: remove unused "os" import This would cause the build to fail since the import is not used. It was not detected since the file is under a build flag. --- lnrpc/autopilotrpc/autopilot_server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lnrpc/autopilotrpc/autopilot_server.go b/lnrpc/autopilotrpc/autopilot_server.go index 7d43dff8..8cd3e227 100644 --- a/lnrpc/autopilotrpc/autopilot_server.go +++ b/lnrpc/autopilotrpc/autopilot_server.go @@ -5,7 +5,6 @@ package autopilotrpc import ( "context" "encoding/hex" - "os" "sync/atomic" "github.com/btcsuite/btcd/btcec" From 3daaa8cf74701c5ce94759854b823603d8d3a93c Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Sat, 2 Feb 2019 15:46:23 +0100 Subject: [PATCH 2/2] lndrpc/invoicesrpc+walletrpc: clean up imports --- lnrpc/invoicesrpc/invoices_server.go | 4 ++-- lnrpc/walletrpc/walletkit_server.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lnrpc/invoicesrpc/invoices_server.go b/lnrpc/invoicesrpc/invoices_server.go index fb328297..274d6ae8 100644 --- a/lnrpc/invoicesrpc/invoices_server.go +++ b/lnrpc/invoicesrpc/invoices_server.go @@ -4,14 +4,14 @@ package invoicesrpc import ( "context" - "google.golang.org/grpc" - "gopkg.in/macaroon-bakery.v2/bakery" "io/ioutil" "os" "path/filepath" "github.com/lightningnetwork/lnd/lnrpc" "github.com/lightningnetwork/lnd/lntypes" + "google.golang.org/grpc" + "gopkg.in/macaroon-bakery.v2/bakery" ) const ( diff --git a/lnrpc/walletrpc/walletkit_server.go b/lnrpc/walletrpc/walletkit_server.go index 1e2770b1..3e998fe2 100644 --- a/lnrpc/walletrpc/walletkit_server.go +++ b/lnrpc/walletrpc/walletkit_server.go @@ -4,7 +4,7 @@ package walletrpc import ( "bytes" - fmt "fmt" + "fmt" "io/ioutil" "os" "path/filepath" @@ -12,10 +12,10 @@ import ( "github.com/btcsuite/btcd/wire" "github.com/lightningnetwork/lnd/keychain" "github.com/lightningnetwork/lnd/lnrpc" - signrpc "github.com/lightningnetwork/lnd/lnrpc/signrpc" + "github.com/lightningnetwork/lnd/lnrpc/signrpc" "github.com/lightningnetwork/lnd/lnwallet" - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" + "golang.org/x/net/context" + "google.golang.org/grpc" "gopkg.in/macaroon-bakery.v2/bakery" )