Skip to content

Commit

Permalink
ipfs: fix potential context leak
Browse files Browse the repository at this point in the history
  • Loading branch information
sahib committed Nov 21, 2018
1 parent 9b74b57 commit fea61c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ test:
go test -v ./...

lint:
find -iname '*.go' -type f ! -path '*vendor*' ! -path '*capnp*' -exec gofmt -w {} \;
find -iname '*.go' -type f ! -path '*vendor*' ! -path '*capnp*' -exec gofmt -s -w {} \;
find -iname '*.go' -type f ! -path '*vendor*' ! -path '*capnp*' -exec go fix {} \;
find -iname '*.go' -type f ! -path '*vendor*' ! -path '*capnp*' -exec golint {} \;
find -iname '*.go' -type f ! -path '*vendor*' ! -path '*capnp*' -exec misspell {} \;
Expand Down
1 change: 1 addition & 0 deletions backend/ipfs/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ func NewWithPort(ipfsPath string, bootstrapAddrs []string, swarmPort int) (*Node
ctx, cancel := context.WithCancel(context.Background())
ipfsNode, err := createNode(ctx, ipfsPath, swarmPort, true, bootstrapAddrs)
if err != nil {
cancel()
return nil, err
}

Expand Down

0 comments on commit fea61c9

Please sign in to comment.