Commit Graph

434 Commits

Author SHA1 Message Date
Steven Allen
1b6a801ba7
Merge pull request #117 from libp2p/dependabot/go_modules/github.com/ipfs/go-datastore-0.4.1
Bump github.com/ipfs/go-datastore from 0.3.1 to 0.4.1
2020-02-11 08:48:43 -08:00
dependabot-preview[bot]
f0752eb701
Bump github.com/ipfs/go-datastore from 0.3.1 to 0.4.1
Bumps [github.com/ipfs/go-datastore](https://github.com/ipfs/go-datastore) from 0.3.1 to 0.4.1.
- [Release notes](https://github.com/ipfs/go-datastore/releases)
- [Commits](https://github.com/ipfs/go-datastore/compare/v0.3.1...v0.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-11 11:18:29 +00:00
Steven Allen
96c0301170
Merge pull request #116 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-net-0.1.2
Bump github.com/multiformats/go-multiaddr-net from 0.1.1 to 0.1.2
2020-02-06 07:37:00 -08:00
dependabot-preview[bot]
4e6c98860e
Bump github.com/multiformats/go-multiaddr-net from 0.1.1 to 0.1.2
Bumps [github.com/multiformats/go-multiaddr-net](https://github.com/multiformats/go-multiaddr-net) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/multiformats/go-multiaddr-net/releases)
- [Commits](https://github.com/multiformats/go-multiaddr-net/compare/v0.1.1...v0.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-06 11:18:50 +00:00
Steven Allen
fae2c3f656
Merge pull request #115 from libp2p/dependabot/go_modules/github.com/multiformats/go-multihash-0.0.13
Bump github.com/multiformats/go-multihash from 0.0.10 to 0.0.13
2020-02-04 10:28:37 -08:00
dependabot-preview[bot]
2593efea72
Bump github.com/multiformats/go-multihash from 0.0.10 to 0.0.13
Bumps [github.com/multiformats/go-multihash](https://github.com/multiformats/go-multihash) from 0.0.10 to 0.0.13.
- [Release notes](https://github.com/multiformats/go-multihash/releases)
- [Commits](https://github.com/multiformats/go-multihash/compare/v0.0.10...v0.0.13)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-04 11:17:34 +00:00
Steven Allen
1f039a1e39
Merge pull request #111 from libp2p/dependabot/go_modules/github.com/pkg/errors-0.9.1
Bump github.com/pkg/errors from 0.9.0 to 0.9.1
2020-01-16 00:06:37 +01:00
dependabot-preview[bot]
fcbd9f630d
Bump github.com/pkg/errors from 0.9.0 to 0.9.1
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](https://github.com/pkg/errors/compare/v0.9.0...v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 11:20:45 +00:00
Steven Allen
3a49c34643
Merge pull request #110 from libp2p/dependabot/go_modules/github.com/pkg/errors-0.9.0
Bump github.com/pkg/errors from 0.8.1 to 0.9.0
2020-01-13 12:37:45 +01:00
dependabot-preview[bot]
d6d444f052
Bump github.com/pkg/errors from 0.8.1 to 0.9.0
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.8.1 to 0.9.0.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](https://github.com/pkg/errors/compare/v0.8.1...v0.9.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-13 11:19:00 +00:00
Steven Allen
86bb8f12a2
Merge pull request #108 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-core-0.3.0
Bump github.com/libp2p/go-libp2p-core from 0.2.5 to 0.3.0
2019-12-17 12:47:09 +01:00
dependabot-preview[bot]
0ca42b6195
Bump github.com/libp2p/go-libp2p-core from 0.2.5 to 0.3.0
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core) from 0.2.5 to 0.3.0.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases)
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.2.5...v0.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-12 11:19:31 +00:00
Steven Allen
aeb7e70828
Merge pull request #107 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.2.0
Bump github.com/multiformats/go-multiaddr from 0.1.2 to 0.2.0
2019-12-11 14:55:32 +01:00
dependabot-preview[bot]
57f63896d4
Bump github.com/multiformats/go-multiaddr from 0.1.2 to 0.2.0
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.1.2 to 0.2.0.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.1.2...v0.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-11 11:37:03 +00:00
Steven Allen
48ed12453d
Merge pull request #105 from libp2p/chore/update-deps
ci: update deps
2019-12-06 19:55:00 -05:00
Steven Allen
33f73af0ec ci: update deps 2019-12-06 19:49:31 -05:00
Steven Allen
5dbe1fb7e5
Merge pull request #100 from libp2p/dependabot/go_modules/github.com/multiformats/go-multiaddr-0.1.2
Bump github.com/multiformats/go-multiaddr from 0.1.1 to 0.1.2
2019-12-06 19:44:27 -05:00
dependabot-preview[bot]
b8a0f60e59
Bump github.com/multiformats/go-multiaddr from 0.1.1 to 0.1.2
Bumps [github.com/multiformats/go-multiaddr](https://github.com/multiformats/go-multiaddr) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/multiformats/go-multiaddr/releases)
- [Commits](https://github.com/multiformats/go-multiaddr/compare/v0.1.1...v0.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 22:08:12 +00:00
Steven Allen
7fef3be6a0
Merge pull request #102 from libp2p/dependabot/go_modules/github.com/hashicorp/golang-lru-0.5.3
Bump github.com/hashicorp/golang-lru from 0.5.1 to 0.5.3
2019-12-06 17:06:16 -05:00
Steven Allen
8847aa91cf
Merge pull request #103 from libp2p/dependabot/go_modules/github.com/libp2p/go-libp2p-core-0.2.5
Bump github.com/libp2p/go-libp2p-core from 0.2.4 to 0.2.5
2019-12-06 17:05:36 -05:00
Steven Allen
4daf128113 Merge branch 'ci/go-1.13' 2019-12-06 16:47:55 -05:00
Steven Allen
60bd468ca0 ci: bump to go 1.13 2019-12-06 16:33:04 -05:00
dependabot-preview[bot]
aaac6e99ec
Bump github.com/libp2p/go-libp2p-core from 0.2.4 to 0.2.5
Bumps [github.com/libp2p/go-libp2p-core](https://github.com/libp2p/go-libp2p-core) from 0.2.4 to 0.2.5.
- [Release notes](https://github.com/libp2p/go-libp2p-core/releases)
- [Commits](https://github.com/libp2p/go-libp2p-core/compare/v0.2.4...v0.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:42:31 +00:00
dependabot-preview[bot]
854ea4c211
Bump github.com/hashicorp/golang-lru from 0.5.1 to 0.5.3
Bumps [github.com/hashicorp/golang-lru](https://github.com/hashicorp/golang-lru) from 0.5.1 to 0.5.3.
- [Release notes](https://github.com/hashicorp/golang-lru/releases)
- [Commits](https://github.com/hashicorp/golang-lru/compare/v0.5.1...v0.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-06 17:42:05 +00:00
Steven Allen
dee88d7532
Merge pull request #95 from libp2p/chore/update-deps
chore(dep): update deps
2019-10-28 15:38:18 -07:00
Steven Allen
334bc6f886 chore(dep): update deps
* update go-libp2p-core and fix tests for new minimum key size. This slows down
the test but terribly.
* switch to go-multiaddr-fmt
* update the datastore
* update gogo/protobuf
2019-10-28 15:32:22 -07:00
Steven Allen
f4c9af195c
Merge pull request #92 from libp2p/fix/identify-2
fix multiple TTL bugs
2019-07-25 09:42:00 -07:00
Steven Allen
2fb6d7a48f fix multiple TTL bugs
The first fix independently extends the address expiration time and the address
TTL:

By example:

* We have an address with a TTL of 4s that will expire in 1s.
* We update it with a TTL of 3s.

Before this change:

* We end up with an address with a TTL of 3s that will expire in 3s.

After this change:

* We end up with an address with a TTL of 4s that will expire in 3s.

---

The second fix prevents the in-memory addressbook from announcing existing
addresses every time their TTLs get updated.

---

The third fix correctly updates TTLs for existing addresses in the on-disk
addressbook.

This fixes https://github.com/libp2p/go-libp2p-identify/issues/2
2019-07-24 17:04:37 -07:00
Raúl Kripalani
ad0faef7c7
make RemoveProtocols take the write lock. (#90) 2019-07-10 15:45:49 +01:00
Steven Allen
06edc321d3
Merge pull request #86 from libp2p/fix/alloc-less
reduce allocations when adding addrs
2019-06-28 17:38:22 +02:00
Steven Allen
491519a817 reduce allocations when adding addrs 2019-06-28 13:26:17 +02:00
Jakub Sztandera
693780b745
Merge pull request #85 from libp2p/update-ds-badger
update go-ds-badger.
2019-06-28 12:22:22 +02:00
Raúl Kripalani
734561ed28 update go-ds-badger. 2019-06-28 12:14:04 +02:00
Jakub Sztandera
cfa9bb890c Update go-ds-badger to 0.0.4
Fire: badger removed its tag

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-21 15:06:18 +02:00
Raúl Kripalani
c11298943e deps: upgrade go-libp2p-core. 2019-06-20 16:24:02 +01:00
Raúl Kripalani
3d3a10dd54
protobook: support removing protocols. (#84) 2019-06-19 23:53:07 +01:00
Steven Allen
243fc72921
Merge pull request #82 from libp2p/test/metadata
test: add metadata test
2019-05-31 20:38:05 -07:00
Steven Allen
9a662b9911 test: add metadata test 2019-05-31 19:58:37 -07:00
Steven Allen
e15116528b
Merge pull request #81 from libp2p/fix/interned-nil-panic
set map in constructor
2019-05-31 19:45:56 -07:00
whyrusleeping
47c4411477 set map in constructor 2019-05-31 18:31:04 -07:00
Steven Allen
0b5b389640 dep: switch to core (#80)
* dep: switch to core

Specifically, remove go-libp2p-{crypto,peer} deps.

* catch a few more usages of deprecated packages.
2019-05-31 14:51:16 +01:00
Steven Allen
aeb6adb266
Merge pull request #79 from libp2p/feat/better-intern
improve interning
2019-05-28 01:38:17 -07:00
Steven Allen
d2e2c56c66 feat: intern agent versions
This also starts taking up a bunch of memory after a while.
2019-05-27 14:41:29 -07:00
Steven Allen
fd3ea885ff feat: improve protocol interning
This used to specify a max size/count but that was only because this logic was
shared between all peerstores (including the on-disk one). Now that:

1. This only applies to the in-memory one.
2. We never actually GC these.

We can just intern indefinitely.
2019-05-27 14:35:05 -07:00
Raúl Kripalani
4353646945
Consolidate abstractions and core types into go-libp2p-core (#69) 2019-05-23 18:11:06 +01:00
vyzo
80303a4b47
Merge pull request #78 from libp2p/feat/segmented-map
segment the memory peerstore + granular locks
2019-05-18 11:45:42 +03:00
vyzo
7fac6b6d98 use segments in ds protobook instead of a lock array 2019-05-18 11:42:47 +03:00
vyzo
07ee3fb062 make lock methods private 2019-05-17 23:41:05 +03:00
vyzo
28b1a9f31d don't track segment sizes, it's a fruitless optimization 2019-05-17 23:39:21 +03:00
vyzo
afca355218 index the peer ID strings directly to avoid copying the byte slice 2019-05-17 23:36:46 +03:00