MCPcopy Create free account
hub / github.com/PasarGuard/node / updateUsers

Method updateUsers

backend/xray/config.go:109–119  ·  view source on GitHub ↗
(users []*common.User)

Source from the content-addressed store, hash-verified

107}
108
109func (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
121func (i *Inbound) syncUsers(users []*common.User) {
122 i.mu.Lock()

Callers 2

UpdateUsersMethod · 0.45
UpdateUsersAndRestartMethod · 0.45

Calls 1

buildInboundUpdatesMethod · 0.95

Tested by

no test coverage detected