X Tutup
Skip to content

Commit 45f9ae7

Browse files
author
Alan Donovan
authored
Merge pull request cli#108 from github/update-liveshare
Update go-liveshare to v0.10.0
2 parents ef8dde4 + 72a2099 commit 45f9ae7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

cmd/ghcs/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func logs(ctx context.Context, tail bool, codespaceName string) error {
8888

8989
tunnelClosed := make(chan error, 1)
9090
go func() {
91-
tunnelClosed <- tunnel.Start(ctx) // error is non-nil
91+
tunnelClosed <- tunnel.Forward(ctx) // error is non-nil
9292
}()
9393

9494
cmdDone := make(chan error, 1)

cmd/ghcs/ports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ func forwardPorts(log *output.Logger, codespaceName string, ports []string) erro
307307
g.Go(func() error {
308308
log.Println("Forwarding port: " + srcstr + " ==> " + strconv.Itoa(pp.dst))
309309
portForwarder := liveshare.NewPortForwarder(lsclient, server, pp.dst)
310-
if err := portForwarder.Start(gctx); err != nil {
310+
if err := portForwarder.Forward(gctx); err != nil {
311311
return fmt.Errorf("error forwarding port: %v", err)
312312
}
313313

cmd/ghcs/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func ssh(ctx context.Context, sshProfile, codespaceName string, localSSHServerPo
105105

106106
tunnelClosed := make(chan error)
107107
go func() {
108-
tunnelClosed <- tunnel.Start(ctx) // error is always non-nil
108+
tunnelClosed <- tunnel.Forward(ctx) // error is always non-nil
109109
}()
110110

111111
shellClosed := make(chan error)

internal/codespaces/states.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func PollPostCreateStates(ctx context.Context, log logger, apiClient *api.API, u
6262

6363
tunnelClosed := make(chan error, 1) // buffered to avoid sender stuckness
6464
go func() {
65-
tunnelClosed <- fwd.Start(ctx) // error is non-nil
65+
tunnelClosed <- fwd.Forward(ctx) // error is non-nil
6666
}()
6767

6868
t := time.NewTicker(1 * time.Second)

0 commit comments

Comments
 (0)
X Tutup