2
0
mirror of synced 2025-02-23 22:28:11 +00:00

torrentfs: Fix bad import

This commit is contained in:
Matt Joiner 2015-06-03 00:14:55 +10:00
parent a2df9f8b01
commit e871dfbbce

View File

@ -17,7 +17,6 @@ import (
"bazil.org/fuse"
fusefs "bazil.org/fuse/fs"
"github.com/gorilla/context"
netContext "golang.org/x/net/context"
"github.com/anacrolix/torrent"
@ -233,14 +232,14 @@ func TestDownloadOnDemand(t *testing.T) {
fs := New(leecher)
defer fs.Destroy()
root, _ := fs.Root()
node, _ := root.(fusefs.NodeStringLookuper).Lookup(context.Background(), "greeting")
node, _ := root.(fusefs.NodeStringLookuper).Lookup(netContext.Background(), "greeting")
var attr fuse.Attr
node.Attr(netContext.Background(), &attr)
size := attr.Size
resp := &fuse.ReadResponse{
Data: make([]byte, size),
}
node.(fusefs.HandleReader).Read(context.Background(), &fuse.ReadRequest{
node.(fusefs.HandleReader).Read(netContext.Background(), &fuse.ReadRequest{
Size: int(size),
}, resp)
content := resp.Data