MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / addOrUpdateClient

Method addOrUpdateClient

internal/watcher/clients.go:160–165  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

158}
159
160func (w *Watcher) addOrUpdateClient(path string) {
161 w.authRescanMu.Lock()
162 defer w.authRescanMu.Unlock()
163
164 w.addOrUpdateClientLocked(path)
165}
166
167func (w *Watcher) addOrUpdateClientLocked(path string) {
168 data, errRead := os.ReadFile(path)

Calls 1