Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build client.go #21

Closed
photoessays opened this issue Jan 12, 2016 · 3 comments
Closed

Can't build client.go #21

photoessays opened this issue Jan 12, 2016 · 3 comments

Comments

@photoessays
Copy link

If I try to build or run the program it fails:

go build *.go

./client.go:200: cannot call non-function t.torrent.Peers (type map[torrent.peersKey]torrent.Peer)

I've fixed it just changing from client.go, line 200.
Original code:

fmt.Printf("Connections: \t%d\n", len(t.Peers()))

Fixed code:

fmt.Printf("Connections: \t%d\n", len(t.Conns))

But I don't know if this is the best way to do it.

@Sioro-Neoku
Copy link
Owner

Should be fixed in master.

@rubenk
Copy link

rubenk commented Jan 18, 2016

I just bumped into the same thing, it isn't fixed on master yet.

@Sioro-Neoku
Copy link
Owner

Seems like for now we can't count the number of connections. I'll work with upstream to get it back, there is already an issue about exposing more network information at anacrolix/torrent#51.

Should be fixed in: 1d886ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants