Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show if proxing on RemotePeer #994

Open
wants to merge 1,164 commits into
base: next
Choose a base branch
from

Conversation

chrisfarms
Copy link
Contributor

@chrisfarms chrisfarms commented Aug 25, 2024

what

exposes proxy as a flag on RemotePeer instances passed over PeerWorkerProxy

why

It is very useful to know if another peer is proxying your writes (so you can respectfully slow down for example) ... however the RemotePeer doesn't pass through the proxy value over the worker divide which means this data is unavailable.

note

PR against next

on RemotePeer proper (not the proxied version), the value of proxy is a more complex object, which makes this inconsistent when running network with worker:{true/false} ... I opted to make it just a boolean for simplicity, but the inconsistency is a bit of a smell, so open to suggestions.

jwerle and others added 30 commits July 8, 2024 16:29
jwerle and others added 29 commits August 19, 2024 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants