Revert "all: keep UserProfiles a slice instead of a map for longer"

This reverts commit e5894aba42.

Breaks macOS/iOS build. Reverting per chat with Josh; he'll fix later today.
This commit is contained in:
Brad Fitzpatrick
2020-09-29 21:39:43 -07:00
parent 90b7293b3b
commit c8f257df00
4 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -163,8 +163,8 @@ func (b *LocalBackend) UpdateStatus(sb *ipnstate.StatusBuilder) {
// TODO: hostinfo, and its networkinfo
// TODO: EngineStatus copy (and deprecate it?)
if b.netMap != nil {
for _, up := range b.netMap.UserProfiles {
sb.AddUser(up)
for id, up := range b.netMap.UserProfiles {
sb.AddUser(id, up)
}
for _, p := range b.netMap.Peers {
var lastSeen time.Time