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

rm-hull / dot-block / 29264584838
62%

Build:
DEFAULT BRANCH: main
Ran 13 Jul 2026 04:01PM UTC
Jobs 1
Files 38
Run time 1min
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

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
```

14 of 16 new or added lines in 3 files covered. (87.5%)

1 existing line in 1 file now uncovered.

1600 of 2554 relevant lines covered (62.65%)

682.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
37.66
0.0% internal/http/routes/routes.go

Coverage Regressions

Lines Coverage ∆ File
1
97.06
0.18% internal/http/sse/broadcaster.go
Jobs
ID Job ID Ran Files Coverage
1 29264584838.1 13 Jul 2026 04:01PM UTC 38
62.65
GitHub Action Run
Source Files on build 29264584838
  • Tree
  • List 38
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 56b8ce8f on github
  • Prev Build on main (#29212142617)
  • Next Build on main (#29269910729)
  • 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