Commit Graph

5 Commits

Author SHA1 Message Date
Marten Seemann
ea8b36912f
fix staticcheck errors (#191)
* run go mod tidy

* omit receiver name if unused

* remove unused type testkey in tests

* fix duplicate import of go-multiaddr

* fix use of deprecated peer.IDB58{Encode,Decode}

* use bytes.Equal instead of bytes.Compare

* fix unnecessary assigments to blank identifier

* use time.Until instead of t.Sub(time.Now())

* fix use of deprecated go-multihash.ID

* add missing error check in envelope test

* fix error check in tests
2021-03-30 16:13:36 -07:00
Steven Allen
5d9ec0280b feat: add a function to tell if a context subscribes to query events
This can save us some work if the caller doesn't actually care about these events.
2020-04-29 13:11:46 -07:00
Steven Allen
aa005892ff doc(routing): document count
Count == 0 now means that we search for an unbounded number of providers.
2020-04-09 10:59:58 -07:00
Steven Allen
acfdb3e6a0 docs(routing/query): document public query event interfaces
fixes https://github.com/libp2p/go-libp2p-routing/issues/41
2019-12-06 12:59:52 -05:00
Raúl Kripalani
6e566d10f4
Absorb go-libp2p abstractions and core types into this module (#1) 2019-05-22 18:31:11 +01:00