go-libp2p-core/peer
Steven Allen ef6e277df7
fix: make timestamps strictly increasing (#201)
* fix: make timestamps strictly increasing

On Linux, this is almost always the case. Windows, however, doesn't have
nanosecond accuracy.

We make the timestamp sequence numbers strictly increasing by returning
the last timestamp + 1 where necessary.

* apply code review

Co-authored-by: Marten Seemann <martenseemann@gmail.com>

* use a lock

Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2021-07-16 15:02:22 -07:00
..
pb Signed envelopes & routing records (#73) 2020-02-10 14:53:24 -05:00
addrinfo_serde.go refactor: use a helper type to decode AddrInfo from JSON (#178) 2021-02-16 12:06:38 -08:00
addrinfo_test.go fix staticcheck errors (#191) 2021-03-30 16:13:36 -07:00
addrinfo.go fix staticcheck errors (#191) 2021-03-30 16:13:36 -07:00
peer_serde_test.go absorb {crypto,peer} test utils. (#8) 2019-05-23 16:07:58 +01:00
peer_serde.go docs: uniform comment sentences 2020-03-03 18:16:38 +01:00
peer_test.go feat: support encoding/decoding peer IDs as CIDs _in text_ 2019-10-02 08:45:33 -07:00
peer.go fix staticcheck errors (#191) 2021-03-30 16:13:36 -07:00
record_test.go fix: make timestamps strictly increasing (#201) 2021-07-16 15:02:22 -07:00
record.go fix: make timestamps strictly increasing (#201) 2021-07-16 15:02:22 -07:00
set.go fix staticcheck errors (#191) 2021-03-30 16:13:36 -07:00