Fix errors

This commit is contained in:
JP Ungaretti 2022-05-26 21:49:59 +00:00 committed by GitHub
parent 76090a2ea7
commit 83a9b87397
2 changed files with 4 additions and 2 deletions

View file

@ -60,7 +60,8 @@ func PollPostCreateStates(ctx context.Context, progress progressIndicator, apiCl
progress.StartProgressIndicatorWithLabel("Fetching SSH Details")
defer progress.StopProgressIndicator()
remoteSSHServerPort, sshUser, err := session.StartSSHServer(ctx)
// TODO: This shouldn't care about the key
remoteSSHServerPort, sshUser, err := session.StartSSHServer(ctx, "")
if err != nil {
return fmt.Errorf("error getting ssh server details: %w", err)
}

View file

@ -56,7 +56,8 @@ func (a *App) Logs(ctx context.Context, codespaceName string, follow bool) (err
localPort := listen.Addr().(*net.TCPAddr).Port
a.StartProgressIndicatorWithLabel("Fetching SSH Details")
remoteSSHServerPort, sshUser, err := session.StartSSHServer(ctx)
// TODO: This shouldn't care about the key
remoteSSHServerPort, sshUser, err := session.StartSSHServer(ctx, "")
a.StopProgressIndicator()
if err != nil {
return fmt.Errorf("error getting ssh server details: %w", err)