Sukun
f5493140ff
swarm: cleanup stream handler goroutine ( #2610 )
1 year ago
Hlib Kanunnikov
e5334ed296
basichost / blankhost: wrap errors ( #2331 )
1 year ago
Marten Seemann
0f9ad8c242
revert "feat:add contexts to all peerstore methods ( #2312 )" ( #2328 )
1 year ago
Prem Chaitanya Prathi
8864d1c33e
feat:add contexts to all peerstore methods ( #2312 )
1 year ago
Marten Seemann
581a015412
swarm: emit PeerConnectedness event from swarm instead of from hosts ( #1574 )
* pass an event bus to the swarm constructor
* make the eventbus parameter a required swarm constructor parameter
* emit Connectedness notifications from the swarm
* remove peer connectedness watchers from hosts
* swarm: emit connectedness events when holding the mutex
2 years ago
Sukun
3598171505
eventbus: add metrics ( #2038 )
* add events emitted metric to eventbus
* properly export grafana dashboard
* Add eventbus subscriber and notification time metrics
* expose name in subscription
* use atomic.AddInt64 for backwards compatibility
* make metrics optin
* update dashboard json
* follow options constructor pattern for eventbus
* remove unused type
* Review comments
* remove event name
* remove whitespace diff
* address review changes. remove notification time
* fix subscribers count
* make subscriber queue state timeline
* allow custom registerer. Make queue length gauge
* eventbus: remove package version from subscriber metrics
* eventbus: minor dashboard tweaks
---------
Co-authored-by: Marten Seemann <martenseemann@gmail.com>
2 years ago
Sukun
6b9c11680e
consistently use protocol.ID instead of strings ( #2004 )
* Change PeerStore interface to use protocol.ID
This reduces the string to protocol.ID translations happening
at various places in the code
* Fix misc cases of protocol.ID conversion
* Merge multistream changes
* Use protocol.ID in network.ConnectionState
* don't update examples
* fix error message tests
* merge new go-multistream changes
* update test-plans go mod
* change transport back to string
2 years ago
Marten Seemann
4623690009
switch from github.com/libp2p/go-libp2p-core to core
2 years ago
Marten Seemann
40727b1b00
switch from github.com/libp2p/go-eventbus to p2p/host/eventbus
2 years ago
Jorropo
efbbaa3388
chore: preallocate slices with known final size ( #1679 )
Found with https://github.com/alexkohler/prealloc
2 years ago
Marten Seemann
8d2e54e163
update go-libp2p-core, remove stream methods from network.Notifiee ( #1521 )
2 years ago
Marten Seemann
3effab121a
switch from github.com/libp2p/go-libp2p-swarm to p2p/net/swarm
3 years ago
Marten Seemann
231f93de1a
add a WithEventBus constructor option
3 years ago
Marten Seemann
dd821e8db9
emit the EvtPeerConnectednessChanged event
3 years ago
Marten Seemann
18939709dc
chore: update go-log to v2
3 years ago
Marten Seemann
67d1fe5429
fix go vet
4 years ago
Steven Allen
05ebe066ca
fix: reset stream on error
This may have been leaking streams with AutoNAT.
4 years ago
Steven Allen
7c82a6d4b2
fix: remove deprecated log.Warning call
4 years ago
Yusef Napora
f124798098
subscribe connmgr to net notifications
5 years ago
Yusef Napora
4524c22480
add WithConnectionManager option to blankhost
5 years ago
Aarsh Shah
8e35f1f632
blank host should support signed records
5 years ago
Raúl Kripalani
29bca348a9
integrate the event bus into host implementations ( #23 )
5 years ago
Raúl Kripalani
88e0587d8c
use migrated types; drop import prefixes. ( #22 )
6 years ago
Steven Allen
12917c5cfe
Consolidate abstractions and core types into go-libp2p-core ( #21 )
6 years ago
Jeromy
8a2f0cbb0f
gx publish 0.2.1
7 years ago
Jeromy
ce255882ef
add in connmgr interfaces
7 years ago
Jeromy
a72748927b
gx publish 0.1.6
8 years ago
Jeromy
07cdcbbff2
fix multistream import paths
8 years ago
Jeromy
abf3fbb615
update go-libp2p-net and host (with peerstore updates)
8 years ago
Jeromy
cd20113f56
implement barebones 'blank' host
8 years ago