refactor(ndt7): use netxlite rather than netx (#768)
This diff required us to move some code around, but no major change actually happened, except better tests. While there, I also slightly refactored ndt7's implementation and removed the ProxyURL setting, which was actually unused. See https://github.com/ooni/probe/issues/2121
This commit is contained in:
parent
314c3c934d
commit
3265bc670a
12 changed files with 189 additions and 159 deletions
|
|
@ -12,7 +12,7 @@ func newMessage(n int) (*websocket.PreparedMessage, error) {
|
|||
}
|
||||
|
||||
type uploadManager struct {
|
||||
conn mockableConn
|
||||
conn wsConn
|
||||
fractionForScaling int64
|
||||
maxRuntime time.Duration
|
||||
maxMessageSize int
|
||||
|
|
@ -24,7 +24,7 @@ type uploadManager struct {
|
|||
}
|
||||
|
||||
func newUploadManager(
|
||||
conn mockableConn, onPerformance callbackPerformance,
|
||||
conn wsConn, onPerformance callbackPerformance,
|
||||
) uploadManager {
|
||||
return uploadManager{
|
||||
conn: conn,
|
||||
|
|
|
|||
Loading…
Reference in a new issue