lnd: fix build error for go 1.6.3, use experimental context import

This commit fixes a build error for go 1.6.3. Before go 1.7, the
context package was under the experimental go packages, therefore to
maintain compatibility across our currently supported versions, we must
use the ‘/x/net’ import path.
This commit is contained in:
Olaoluwa Osuntokun 2016-10-15 15:35:26 -07:00
parent 79e7862525
commit e038491f8a
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

3
lnd.go
View File

@ -1,7 +1,6 @@
package main
import (
"context"
"encoding/hex"
"fmt"
"io/ioutil"
@ -13,6 +12,8 @@ import (
"runtime"
"strconv"
"golang.org/x/net/context"
"google.golang.org/grpc"
proxy "github.com/grpc-ecosystem/grpc-gateway/runtime"