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

Failed to run example file #158

Closed
mjena opened this issue Nov 18, 2016 · 2 comments
Closed

Failed to run example file #158

mjena opened this issue Nov 18, 2016 · 2 comments
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@mjena
Copy link

mjena commented Nov 18, 2016

Failed to run main.go present in example folder. here is the logs
MAHESHs-Mac-mini:go-libp2p maheshjena$ go run examples/echo/main.go

github.com/libp2p/go-peerstream

../go-peerstream/stream.go:96: s.smuxStream.SetDeadline undefined (type streammux.Stream has no field or method SetDeadline)
../go-peerstream/stream.go:100: s.smuxStream.SetReadDeadline undefined (type streammux.Stream has no field or method SetReadDeadline)
../go-peerstream/stream.go:104: s.smuxStream.SetWriteDeadline undefined (type streammux.Stream has no field or method SetWriteDeadline)
MAHESHs-Mac-mini:go-libp2p maheshjena$

@hsanjuan
Copy link
Contributor

hsanjuan commented Nov 18, 2016

Hi, yep sorry, this is a known issue in master. You can run make deps on the go-libp2p base folder to use the gx-pinned deps which allow the example to compile fine.

You can also subscribe to this thread which is related, if you're interested: libp2p/go-stream-muxer#10

@whyrusleeping whyrusleeping added the status/deferred Conscious decision to pause or backlog label Nov 28, 2016
@daviddias daviddias added the kind/bug A bug in existing code (including security flaws) label Aug 19, 2017
@daviddias
Copy link
Member

Hi @mjena, this shouldn't be an issue anymore, could you try again? Let me know if you have issues and we will reopen this issue.

@daviddias daviddias removed the status/deferred Conscious decision to pause or backlog label Aug 19, 2017
marten-seemann added a commit that referenced this issue Aug 9, 2022
stop using the deprecated go-multiaddr-net package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

4 participants