-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Wrong type for anonymous func in identify/id.go #2480
Comments
Are you using Go 1.21? This looks like the change that was made in the slices package to the compare fn type. Go 1.21 isn't supported until we release a new version with #2478 . Please include your environment and a repro. |
hepp! yes. I was just about to write: This works in go1.19, but not with go1.2* So it also fails with go1.20. But Im happy to wait a few days until 0.30 is out and follow up on this then. Feel free to leave it. I can work with 1.19 until then. |
Related to this, I take it. #2369 |
This has been reported multiple times and has since been fixed. |
I use go 1.20.7 same situation |
compile fails. I have no idea what causes the error. But it seems lilke an obvious error.
../../go/pkg/mod/github.com/libp2p/[email protected]/p2p/protocol/identify/id.go:559:25: type func(a multiaddr.Multiaddr, b multiaddr.Multiaddr) bool of func(a, b ma.Multiaddr) bool {…} does not match inferred type func(a multiaddr.Multiaddr, b multiaddr.Multiaddr) int for func(a E, b E) int
../../go/pkg/mod/github.com/libp2p/[email protected]/p2p/protocol/identify/obsaddr.go:217:22: type func(first *observedAddr, second *observedAddr) bool of func(first, second *observedAddr) bool {…} does not match inferred type func(a *observedAddr, b *observedAddr) int for func(a E, b E) int
The text was updated successfully, but these errors were encountered: