Commit Graph

575 Commits

Author SHA1 Message Date
Marten Seemann
5eae6d6caf limit the number of protocols we store per peer 2021-10-22 18:01:08 +02:00
Marten Seemann
3f028c937b reduce mutex contention in SetProtocols 2021-10-22 15:51:34 +02:00
Marten Seemann
a1f426f3d0
Merge pull request #171 from libp2p/rectactv029
retract v0.2.9
2021-09-25 17:30:30 +01:00
Marten Seemann
d3e38bf957 retract v0.2.9 2021-09-25 13:40:51 +01:00
Marten Seemann
4a0f53efa2
Merge pull request #169 from libp2p/web3-bot/sync
sync: update CI config files
2021-09-25 13:13:01 +01:00
web3-bot
edd21e34a3 update .github/workflows/go-check.yml 2021-08-17 13:32:39 +00:00
web3-bot
a29affb2a1 update .github/workflows/go-test.yml 2021-08-17 13:32:39 +00:00
web3-bot
3519224b92 update .github/workflows/automerge.yml 2021-08-17 13:32:39 +00:00
web3-bot
c4bd4dc225 run go mod tidy 2021-08-17 13:32:39 +00:00
web3-bot
c6b9a22167 bump go.mod to Go 1.16 and run go fix 2021-08-17 13:32:37 +00:00
Marten Seemann
ca567f2105
Merge pull request #168 from muXxer/fix/replace-deprecated-call
fix: replace deprecated call
2021-08-14 11:10:51 +01:00
muXxer
6139fde311 fix: replace deprecated call 2021-08-12 16:09:17 +02:00
Steven Allen
301af201be
Merge pull request #166 from libp2p/fix/remove-queue
feat: remove queue
2021-07-23 11:08:46 -07:00
Steven Allen
f00c27d4d7 feat: remove queue
This has long since been moved into the DHT itself and doesn't belong
here. I.e., it has nothing to do with the peerstore and nobody else uses
it.

replaces https://github.com/libp2p/go-libp2p-peerstore/pull/83
2021-07-23 11:02:30 -07:00
Steven Allen
3f599b0424
Merge pull request #165 from libp2p/remove-deprecated-types
remove deprecated types
2021-07-22 12:43:35 -07:00
Marten Seemann
7482317446 remove deprecated types 2021-07-22 21:26:58 +02:00
Steven Allen
f7f22569f7
Merge pull request #141 from pymq/fix_update_addrbook_loop
Fix perfomance issue in updating addr book
2021-07-20 17:35:56 -07:00
Steven Allen
517a48433f chore: cleanup addr book patch
1. Remove duplicate import.
2. Lift empty check to simplify code.
3. Use a more efficient map key (go will optimize this to not allocate).
2021-07-20 17:30:09 -07:00
Maxim Merzhanov
8c02e08cd3 reduce complexity in update addr book method 2021-07-20 17:30:09 -07:00
Steven Allen
2ff9006762
Merge pull request #164 from libp2p/fix/test-flakes
Fix test flakes
2021-07-20 17:29:05 -07:00
Steven Allen
d5e4862e0f fix: avoid using the disk in datastore tests
Makes the timing much less problematic, especially in CI.
2021-07-20 17:18:43 -07:00
Steven Allen
59822c4eb1 test: make the "add" test less timing dependent 2021-07-20 17:17:41 -07:00
Steven Allen
7afb11e00d test: don't run datastore tests in parallel
We have timing dependencies in some of these tests.
2021-07-20 17:17:41 -07:00
Steven Allen
4a4c4886f7 fix: assert that peer record is accepted in test
This test is flaking on windows when using the leveldb datastore.
Hopefully, this extra check will help us narrow it down.
2021-07-20 17:17:41 -07:00
Steven Allen
eef7cecd29
Merge pull request #135 from libp2p/feat/remove-non-gc-removal
Only remove records during GC
2021-07-16 20:43:52 -07:00
Aarsh Shah
739d9b7c52 remove removal that is not required 2021-07-16 20:03:28 -07:00
Steven Allen
1907cca69f
Merge pull request #160 from libp2p/web3-bot/sync
sync: update CI config files
2021-07-16 20:02:00 -07:00
Steven Allen
0b07f55731 test: make tests less timing dependent 2021-07-16 19:45:29 -07:00
Steven Allen
501bfa8154 chore: update libp2p-core
ensures that peer record sequence numbers are atomic
2021-07-16 19:45:29 -07:00
Steven Allen
99836f05e7 test: use leveldb instead of badger
Badger has issues on 32bit operating systems.
2021-07-16 19:45:29 -07:00
web3-bot
8fdf7888b2 add .github/workflows/go-check.yml 2021-07-16 19:45:29 -07:00
web3-bot
96cc3e6c4f add .github/workflows/go-test.yml 2021-07-16 19:45:29 -07:00
web3-bot
c3436ed15f add .github/workflows/automerge.yml 2021-07-16 19:45:29 -07:00
web3-bot
031eb15a28 disable Travis 2021-07-16 19:45:29 -07:00
Steven Allen
87136c9300
Merge pull request #161 from libp2p/fix/races
fix: fix some race conditions in the ds address book
2021-07-16 19:44:59 -07:00
Steven Allen
2c64af26c3 fix: log sequence ds error 2021-07-16 15:40:47 -07:00
Steven Allen
35bbffb1c5 fix: fix some race conditions in the ds address book 2021-07-16 15:37:49 -07:00
Steven Allen
68d396b762
Merge pull request #159 from libp2p/fix/lints
address lints and test failures
2021-07-16 10:38:44 -07:00
Steven Allen
4808543c09 fix: address lints 2021-07-16 10:38:05 -07:00
Steven Allen
90f363555f chore: update to latest go error handling
We no longer need the "errors" package.
2021-07-16 10:38:00 -07:00
Steven Allen
e161a361fc chore: update deps 2021-07-15 17:29:05 -07:00
Steven Allen
9aa80d7506 fix: avoid copying locks/waitgroups 2021-07-15 17:16:22 -07:00
Marten Seemann
3b39a0abfa
Merge pull request #158 from libp2p/remove-go-multiaddr-net
stop using the deprecated go-multiaddr-net package
2021-07-01 19:33:17 -07:00
Marten Seemann
a5108ed514 stop using the deprecated go-multiaddr-net package 2021-07-01 19:31:17 -07:00
Steven Allen
b4ad10c61b
Merge pull request #157 from libp2p/fix/delete-addrs-update-zero
fix: delete addrs when "updating" them to zero
2021-04-29 20:35:14 -07:00
Steven Allen
cce0adbd0a fix: delete addrs when "updating" them to zero
1. Fix expiration check to check "not before" instead of after.
Otherwise, something that is expiring "now" won't count as expired. The
datastore-backed peerstore already had the correct logic.
2. Short-circuit updating the TTL to 0 and just delete the records.

Note: this wasn't causing problems on Linux (likely due to monotonic
clocks?) but was causing go-libp2p tests to fail reliably on Windows.
2021-04-29 17:20:27 -07:00
Steven Allen
74ed1a9974
Merge pull request #155 from libp2p/fix/peer-record-bugs
fix two bugs in signed address handling
2020-06-08 08:24:40 -07:00
Steven Allen
095da5537d fix: make processing signed address records atomic
Previously, two calls to ConsumePeerRecord could interleave and cause us to keep
_old_ addresses with a _new_ record.
2020-06-05 18:36:59 -07:00
Steven Allen
56ebb42d5f fix: always update address TTLs in a signed peer record
Previously, we'd only set the TTL if the addresses were new.
2020-06-05 18:36:56 -07:00
vyzo
9827ee0860
Merge pull request #154 from jsign/jsign/fixraces
addrbook: fix races
2020-06-05 21:20:41 +03:00