Skip to content

Commit

Permalink
Merge pull request #11 from TRON-US/escrow
Browse files Browse the repository at this point in the history
Fix make doesn't build src files and build error
  • Loading branch information
jin-tron authored Nov 6, 2019
2 parents 60133da + 07d0888 commit 98c96e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
default: lintf

SRC_DIR=./info ./ledger

install:
brew install protobuf
brew install prototool
Expand All @@ -11,3 +13,7 @@ lintf:
build:
prototool all
go mod tidy
for dir in $(SRC_DIR); \
do \
go build $$dir; \
done
3 changes: 1 addition & 2 deletions ledger/ledger.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/tls"
"crypto/x509"
"fmt"
"os"
"time"

ledgerPb "github.com/tron-us/go-btfs-common/protos/ledger"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 98c96e8

Please sign in to comment.