add a comment explaining why we build an sshUsers map
This commit is contained in:
parent
6f8635a17e
commit
4a6887f99e
1 changed files with 4 additions and 0 deletions
|
|
@ -194,6 +194,10 @@ func (a *App) printOpenSSHConfig(ctx context.Context, opts configOptions) error
|
|||
return err
|
||||
}
|
||||
|
||||
// store a mapping of repository -> remote ssh username. This is
|
||||
// necessary because the username can vary between codespaces, but
|
||||
// since fetching it is slow, we store it here so we at least only do
|
||||
// it once per repository.
|
||||
sshUsers := map[string]string{}
|
||||
|
||||
for _, cs := range codespaces {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue