diff --git a/Makefile b/Makefile index 7d2cd1f..45ddd9b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ default: lintf +SRC_DIR=./info ./ledger + install: brew install protobuf brew install prototool @@ -11,3 +13,7 @@ lintf: build: prototool all go mod tidy + for dir in $(SRC_DIR); \ + do \ + go build $$dir; \ + done diff --git a/ledger/ledger.go b/ledger/ledger.go index 064d3ee..c1676ec 100644 --- a/ledger/ledger.go +++ b/ledger/ledger.go @@ -5,7 +5,6 @@ import ( "crypto/tls" "crypto/x509" "fmt" - "os" "time" ledgerPb "github.com/tron-us/go-btfs-common/protos/ledger" @@ -131,7 +130,7 @@ func CreateChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, ch } func CloseChannel(ctx context.Context, ledgerClient ledgerPb.ChannelsClient, signedChannelState *ledgerPb.SignedChannelState) error { - _, err = ledgerClient.CloseChannel(ctx, signedChannelState) + _, err := ledgerClient.CloseChannel(ctx, signedChannelState) if err != nil { return err }