Edits to the measurex tutorial (#534)

This commit is contained in:
Arturo Filastò
2021-10-11 17:48:45 +02:00
committed by GitHub
parent 1ffb2db0ca
commit 46e00888ae
14 changed files with 58 additions and 58 deletions
@@ -67,7 +67,7 @@ func webConnectivity(ctx context.Context, URL string) (*measurement, error) {
```
We start by parsing the input URL. If we cannot parse it, of
course this is an hard error and we cannot continue.
course this is a hard error and we cannot continue.
```Go
parsedURL, err := url.Parse(URL)
@@ -100,7 +100,7 @@ the input URL's domain using the system resolver.
```
This is code we have already seen in previous chapter.
This is code we have already seen in the previous chapters.
### 2. Building a list of endpoints
@@ -149,7 +149,7 @@ now focus on the last point:
### 5. HTTP measurement
We need to manually build a `MeasurementDB`. This is a
"database" where networking code will store events.
"database" where the networking code will store events.
```Go
@@ -190,7 +190,7 @@ the round trip. Reading a snapshot of the response
body is not implemented by this function but rather
is a property of the "tracing" HTTP transport we
created above (this type of transport is the one we
have been internally using in all the examples
have been using internally in all the examples
presented so far.)
```Go
+4 -4
View File
@@ -68,7 +68,7 @@ func webConnectivity(ctx context.Context, URL string) (*measurement, error) {
// ```
//
// We start by parsing the input URL. If we cannot parse it, of
// course this is an hard error and we cannot continue.
// course this is a hard error and we cannot continue.
//
// ```Go
parsedURL, err := url.Parse(URL)
@@ -101,7 +101,7 @@ func webConnectivity(ctx context.Context, URL string) (*measurement, error) {
// ```
//
// This is code we have already seen in previous chapter.
// This is code we have already seen in the previous chapters.
//
//
// ### 2. Building a list of endpoints
@@ -150,7 +150,7 @@ func webConnectivity(ctx context.Context, URL string) (*measurement, error) {
// ### 5. HTTP measurement
//
// We need to manually build a `MeasurementDB`. This is a
// "database" where networking code will store events.
// "database" where the networking code will store events.
//
// ```Go
@@ -191,7 +191,7 @@ func webConnectivity(ctx context.Context, URL string) (*measurement, error) {
// body is not implemented by this function but rather
// is a property of the "tracing" HTTP transport we
// created above (this type of transport is the one we
// have been internally using in all the examples
// have been using internally in all the examples
// presented so far.)
//
// ```Go