forked from ipfs/ipfs-webui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: peers table enhancements (ipfs#1616)
* feat(peers): direction and mounted streams * feat(peers): click to copy * fix: geoipCache per ipfs-geoip version * refactor: replace in/out, agent with open streams Sadly I was not able to make things performant enough: - in/out adds 1 HTTP request PER peer (and cant be cached as it is dynamic) - agent also adds one (but could be cached) We need better API than HTTP, maybe RPC over websockets or pubsub. To salvage this PR I replaced mentioned columns with open libp2p streams, which does not require any additional requests, but is pretty useful, gives us insight if peer was used only for kad DHT, bitswap, pubsub etc. * chore: update peers unit tests * style: text-only tooltip for unnamed stream * style: no-select latency column * style: [unnamed] in copied text instead of emoji Co-authored-by: Marcin Rataj <[email protected]>
- Loading branch information
1 parent
3ac4469
commit 4560981
Showing
9 changed files
with
164 additions
and
220 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.