MCPcopy Create free account
hub / github.com/MertJSX/folderhost / TriggerPendingLog

Function TriggerPendingLog

utils/ws_debounce_logging_system.go:46–61  ·  view source on GitHub ↗
(username, filePath string)

Source from the content-addressed store, hash-verified

44}
45
46func TriggerPendingLog(username, filePath string) {
47 debounceMu.Lock()
48 defer debounceMu.Unlock()
49
50 if state, exists := debounceStates[username]; exists {
51 state.Mu.Lock()
52 if state.Timer != nil {
53 state.Timer.Stop()
54 }
55 state.Mu.Unlock()
56
57 createWriteFileLog(state.Username, state.FilePath)
58
59 delete(debounceStates, username)
60 }
61}
62
63func createWriteFileLog(username, filePath string) {
64 logs.CreateLog(types.AuditLog{

Callers 1

HandleWebsocketFunction · 0.92

Calls 1

createWriteFileLogFunction · 0.85

Tested by

no test coverage detected