netx: refactor to reduce code duplication #310
Labels
bug
Something isn't working
enhancement
New feature or request
ooni/netx
Issues related to github.com/ooni/netx
priority/medium
Medium priority
There is duplication in netx. The
internal/internal.go
code is the real implementation.netx.go
andhttpx/httpx.go
duplicate code and tests that are insideinternal
. This is caused by the fact that I chose to splitnetx
andhttpx
in two different packages. However, this split in two packages is just an annoyance, precisely because of duplicated tests, etc., and we should just remove that.This insight occurred to me while reasoning about how to approach #229.
The text was updated successfully, but these errors were encountered: