add a comment explaining why we build an sshUsers map

This commit is contained in:
Jason Lunz 2021-12-16 16:47:16 -07:00
parent 6f8635a17e
commit 4a6887f99e
No known key found for this signature in database
GPG key ID: 88F9FD38589448E9

View file

@ -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 {