make some things private

This commit is contained in:
Sam Lewis
2022-10-23 18:53:38 -04:00
parent f4d44cb6fe
commit e2fb6872ae
6 changed files with 18 additions and 14 deletions

View File

@@ -105,10 +105,10 @@ func callEventListeners(app *app, msg ws.ChanMsg) {
for _, l := range listeners {
// Check conditions
if c := CheckWithinTimeRange(l.betweenStart, l.betweenEnd); c.fail {
if c := checkWithinTimeRange(l.betweenStart, l.betweenEnd); c.fail {
return
}
if c := CheckThrottle(l.throttle, l.lastRan); c.fail {
if c := checkThrottle(l.throttle, l.lastRan); c.fail {
return
}