Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer committed Nov 7, 2023
1 parent 36f339a commit e763a08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test-integ/topoutil/blankspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"google.golang.org/grpc/credentials/insecure"
)

// GetBlankspaceNameViaHTTP calls a copy of blankspace once via HTTP and
// retrieves the self-identified name of the instance.
func GetBlankspaceNameViaHTTP(
ctx context.Context,
client *http.Client,
Expand Down Expand Up @@ -67,6 +69,8 @@ func GetBlankspaceNameViaHTTP(
return v.Name, nil
}

// GetBlankspaceNameViaGRPC calls a copy of blankspace once via gRPC and
// retrieves the self-identified name of the instance.
func GetBlankspaceNameViaGRPC(ctx context.Context, serverAddr string) (string, error) {
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
defer cancel()
Expand All @@ -87,6 +91,8 @@ func GetBlankspaceNameViaGRPC(ctx context.Context, serverAddr string) (string, e
return resp.GetName(), nil
}

// GetBlankspaceNameViaTCP calls a copy of blankspace once via tcp and
// retrieves the self-identified name of the instance.
func GetBlankspaceNameViaTCP(ctx context.Context, serverAddr string) (string, error) {
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
defer cancel()
Expand Down

0 comments on commit e763a08

Please sign in to comment.