Skip to content

Commit

Permalink
Fix for upstream change
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Apr 4, 2016
1 parent 5b0afec commit 03fb79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ func (clientError ClientError) Error() string {
// Client manages the torrent downloading.
type Client struct {
Client *torrent.Client
Torrent torrent.Torrent
Torrent *torrent.Torrent
Progress int64
Port int
}

// NewClient creates a new torrent client based on a magnet or a torrent file.
// If the torrent file is on http, we try downloading it.
func NewClient(torrentPath string, port int, seed bool, tcp bool) (client Client, err error) {
var t torrent.Torrent
var t *torrent.Torrent
var c *torrent.Client

client.Port = port
Expand Down

0 comments on commit 03fb79f

Please sign in to comment.