Sioro-Neoku / go-peerflix

Go Peerflix
MIT License
470 stars 119 forks source link

go get return undefined: torrent.Config #40

Closed WeihuaGu closed 5 years ago

WeihuaGu commented 5 years ago
go get github.com/Sioro-Neoku/go-peerflix
# github.com/Sioro-Neoku/go-peerflix
go/src/github.com/Sioro-Neoku/go-peerflix/client.go:75:30: undefined: torrent.Config
go/src/github.com/Sioro-Neoku/go-peerflix/client.go:119:26: client.getLargestFile().PrioritizeRegion undefined (type *torrent.File has no field or method PrioritizeRegion)
go/src/github.com/Sioro-Neoku/go-peerflix/client.go:163:10: c.Client.SetIPBlockList undefined (type *torrent.Client has no field or method SetIPBlockList)
go/src/github.com/Sioro-Neoku/go-peerflix/client.go:198:29: t.Stats().DataBytesWritten undefined (type torrent.TorrentStats has no field or method DataBytesWritten)
go/src/github.com/Sioro-Neoku/go-peerflix/client.go:226:11: cannot use file (type *torrent.File) as type torrent.File in assignment
go/src/github.com/Sioro-Neoku/go-peerflix/fileEntry.go:19:2: embedded type cannot be a pointer to interface
go/src/github.com/Sioro-Neoku/go-peerflix/fileEntry.go:24:2: not enough arguments to return
go/src/github.com/Sioro-Neoku/go-peerflix/fileEntry.go:24:17: f.Reader.Seek undefined (type *torrent.Reader is pointer to interface, not interface)
go/src/github.com/Sioro-Neoku/go-peerflix/fileEntry.go:39:9: cannot use reader (type torrent.Reader) as type *torrent.Reader in field value:
    *torrent.Reader is pointer to interface, not interface
zbhknight commented 5 years ago

This repo hasn't been updated for a long time. These errors are due to upstream updates. You can check my updates to fix this issue. https://github.com/zbhknight/go-peerflix/tree/torrent-update

WeihuaGu commented 5 years ago

thank you @zbhknight :)

Sioro-Neoku commented 5 years ago

Thank you for the help, I resolved the issue in https://github.com/Sioro-Neoku/go-peerflix/pull/43