Skip to content

Conversation

@0x416e746f6e
Copy link
Member

subj.

@0x416e746f6e 0x416e746f6e requested a review from akundaz October 23, 2025 08:09
@0x416e746f6e 0x416e746f6e self-assigned this Oct 23, 2025
@0x416e746f6e 0x416e746f6e changed the title chore: drop ProxyInner trait chore: drop ProxyInner and Proxy traits Oct 23, 2025
proxy: &'static str,
remote_addr: Option<String>,
local_addr: Option<String>,
metrics: &Arc<Metrics>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to pass arcs by reference

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought cloning w/o real need was "bad"

Copy link
Contributor

@akundaz akundaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a step in the right direction but if you look carefully the ProxyHttpInner and ProxyWsInner traits are extremely similar

@0x416e746f6e 0x416e746f6e merged commit 7e231f4 into main Oct 23, 2025
@0x416e746f6e 0x416e746f6e deleted the chore/drop-proxyinner-trait branch October 23, 2025 18:10
@0x416e746f6e
Copy link
Member Author

This is a step in the right direction but if you look carefully the ProxyHttpInner and ProxyWsInner traits are extremely similar

i.m.o. not all code that looks similar (or identical even) should be DRY-ed.

merging the two will introduce unnecessary coupling.

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.

2 participants