• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / dot-block / 29264584838 / 1
66%
main: 66%

Build:
DEFAULT BRANCH: main
Ran 13 Jul 2026 04:01PM UTC
Files 38
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Jul 2026 04:00PM UTC coverage: 62.647% (+0.02%) from 62.632%
29264584838.1

push

github

web-flow
feat: add sequence numbers to SSE broadcast events (#193)

* feat: add sequence numbers to SSE broadcast events

Refactored the `Broadcaster` to handle `Event` structs instead of raw
bytes, enabling the inclusion of a `sequence` field. This allows clients
 to track message ordering and detect missed events in the stream.

```mermaid
sequenceDiagram
    participant D as Dispatcher
    participant B as Broadcaster
    participant C as SSE Client

    D->>B: Broadcast(Event{Domain: "example.com"})
    Note over B: Set Sequence = N++
    B->>C: Push Event(Sequence: N, ...)
```

* refactor: optimize SSE event broadcasting and serialization

- Use `atomic.Uint64` for sequence generation to remove lock contention
  in the `Broadcast` path.
- Refactor `Event` struct fields for brevity in JSON payloads.
- Align `Timestamp` field naming across the codebase.

```mermaid
sequenceDiagram
    participant D as Dispatcher
    participant B as Broadcaster
    participant S as Subscribers

    D->>B: Broadcast(event)
    B->>B: Increment sequence (atomic)
    B->>S: Fan-out event via RLock
```

1600 of 2554 relevant lines covered (62.65%)

682.17 hits per line

Source Files on job 29264584838.1
  • Tree
  • List 38
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 29264584838
  • 56b8ce8f on github
  • Prev Job for on main (#29212142617.1)
  • Next Job for on main (#29269910729.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc