Skip to content

Commit

Permalink
Fix cluster tunnel.go renamed FullUrl to FullURL and updated all refe…
Browse files Browse the repository at this point in the history
…rences
  • Loading branch information
mike-winberry committed May 1, 2023
1 parent 3c66078 commit 90e83f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/internal/api/tunnels/tunnels.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func makeTunnels() {

// launchTunnelURL launches the tunnel URL in the default browser
func launchTunnelURL(tunnel *cluster.Tunnel, w http.ResponseWriter, name string) {
if err := exec.LaunchURL(tunnel.FullUrl()); err != nil {
if err := exec.LaunchURL(tunnel.FullURL()); err != nil {
message.ErrorWebf(err, w, "Failed to launch browser for %s", name)

}
Expand Down
4 changes: 2 additions & 2 deletions src/internal/cluster/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ func (tunnel *Tunnel) HTTPEndpoint() string {
return fmt.Sprintf("http://%s", tunnel.Endpoint())
}

// FullUrl returns the tunnel endpoint as a HTTP URL string with the urlSuffix appended.
func (tunnel *Tunnel) FullUrl() string {
// FullURL returns the tunnel endpoint as a HTTP URL string with the urlSuffix appended.
func (tunnel *Tunnel) FullURL() string {
return fmt.Sprintf("%s%s", tunnel.HTTPEndpoint(), tunnel.urlSuffix)
}

Expand Down

0 comments on commit 90e83f8

Please sign in to comment.