-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: progress towards fixing some fundamental issues
- Loading branch information
1 parent
ea0d3bf
commit fd06406
Showing
5 changed files
with
125 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package webconnectivitylte | ||
|
||
import ( | ||
"net/http" | ||
|
||
"github.com/ooni/probe-cli/v3/internal/measurexlite" | ||
"github.com/ooni/probe-cli/v3/internal/model" | ||
) | ||
|
||
// TODO(bassosimone): document this func | ||
func newArchivalHTTPRequestResultWithError(trace *measurexlite.Trace, network, address, alpn string, | ||
req *http.Request, err error) *model.ArchivalHTTPRequestResult { | ||
duration := trace.TimeSince(trace.ZeroTime()) | ||
return measurexlite.NewArchivalHTTPRequestResult( | ||
trace.Index(), | ||
duration, | ||
network, | ||
address, | ||
alpn, | ||
network, // TODO(bassosimone): get rid of this duplicate field? | ||
req, | ||
nil, | ||
0, | ||
nil, | ||
err, | ||
duration, | ||
) | ||
} |
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