From 18ece8a6b8b95d1abf2108af95bb8b696b7b45b3 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 30 Jun 2022 23:20:15 +0100 Subject: [PATCH] ratelimit for pooler set at 33ms --- voicemeeter/publisher.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/voicemeeter/publisher.go b/voicemeeter/publisher.go index 747c53a..e114c71 100644 --- a/voicemeeter/publisher.go +++ b/voicemeeter/publisher.go @@ -1,5 +1,9 @@ package voicemeeter +import ( + "time" +) + // observer defines the interface any registered observers must satisfy type observer interface { OnUpdate(subject string) @@ -59,5 +63,6 @@ func (p *pooler) runner() { if mdirty() { p.notify("mdirty") } + time.Sleep(33 * time.Millisecond) } }