(users []*common.User)
| 107 | } |
| 108 | |
| 109 | func (c *Config) updateUsers(users []*common.User) { |
| 110 | inboundByTag, updates := c.buildInboundUpdates(users) |
| 111 | for tag, inbound := range inboundByTag { |
| 112 | update := updates[tag] |
| 113 | removeEmails := make([]string, 0, len(update.removeEmailSet)) |
| 114 | for email := range update.removeEmailSet { |
| 115 | removeEmails = append(removeEmails, email) |
| 116 | } |
| 117 | inbound.updateUsers(update.accounts, removeEmails) |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | func (i *Inbound) syncUsers(users []*common.User) { |
| 122 | i.mu.Lock() |
no test coverage detected