~ knotless Search/
↑↓ move↵ open⇧↵ all results

zat.dev/zlay

atproto relay in zig · mirror of https://tangled.org/zat.dev/zlay

0
0
13 lines · 737 B Raw History
diff --git a/src/internal/broadcaster.zig b/src/internal/broadcaster.zig
index 07d4642..aedbad2 100644
--- a/src/internal/broadcaster.zig
+++ b/src/internal/broadcaster.zig
@@ -604,7 +604,7 @@ pub const Consumer = struct {
                     // no data: poll briefly instead of blocking on cond
                     // (Io.Condition has no timedWait, so we poll to allow periodic ping checks)
                     self.mutex.unlock(self.io);
-                    self.io.sleep(Io.Duration.fromMilliseconds(100), .awake) catch {};
+                    self.io.sleep(Io.Duration.fromMilliseconds(1), .awake) catch {};
                     self.mutex.lockUncancelable(self.io);
                 }
                 frame = self.dequeue();