Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Oct 11, 2023
1 parent 0df2d7f commit b9defb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions internal/experiment/riseupvpn/riseupvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func parseGateways(testKeys *TestKeys) []GatewayV3 {
// TODO(bassosimone,cyberta): is it reasonable that we discard
// the error when the JSON we fetched cannot be parsed?
// See https://github.com/ooni/probe/issues/1432
eipService, err := DecodeEIPService3(string(requestEntry.Response.Body))
eipService, err := DecodeEIPServiceV3(string(requestEntry.Response.Body))
if err == nil {
return eipService.Gateways
}
Expand All @@ -317,8 +317,8 @@ func parseGateways(testKeys *TestKeys) []GatewayV3 {
return nil
}

// DecodeEIPService3 decodes eip-service.json version 3
func DecodeEIPService3(body string) (*EIPServiceV3, error) {
// DecodeEIPServiceV3 decodes eip-service.json version 3
func DecodeEIPServiceV3(body string) (*EIPServiceV3, error) {
var eip EIPServiceV3
err := json.Unmarshal([]byte(body), &eip)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion internal/experiment/riseupvpn/riseupvpn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func TestFailureTransport(t *testing.T) {
}

func TestMissingTransport(t *testing.T) {
eipService, err := riseupvpn.DecodeEIPService3(eipservice)
eipService, err := riseupvpn.DecodeEIPServiceV3(eipservice)
if err != nil {
t.Fatal("Preconditions for the test are not met.")
}
Expand Down

0 comments on commit b9defb6

Please sign in to comment.