docs(activity): document fetched_at format and Cache concurrency safety #340

Merged
fuzzy merged 1 commit from docs/290-cache-fetched-at-docs into main 2026-07-08 07:50:32 +00:00
Owner

What

  • Add SQL comment on fetched_at column specifying RFC3339 format
  • Add godoc on Cache struct documenting that sql.DB is safe for concurrent use

Why

The fetched_at format was unspecified, making it unclear how to parse or compare timestamps. The Cache struct lacked any doc comment about concurrency despite being shared across goroutines.

Testing

  • go build passes
  • go test -race -short ./... passes
  • golangci-lint passes

Closes #290

## What - Add SQL comment on `fetched_at` column specifying RFC3339 format - Add godoc on `Cache` struct documenting that `sql.DB` is safe for concurrent use ## Why The `fetched_at` format was unspecified, making it unclear how to parse or compare timestamps. The `Cache` struct lacked any doc comment about concurrency despite being shared across goroutines. ## Testing - [x] `go build` passes - [x] `go test -race -short ./...` passes - [x] golangci-lint passes Closes #290
docs(activity): document fetched_at format and Cache concurrency safety
All checks were successful
Test and Release / test (pull_request) Successful in 28s
Test and Release / lint (pull_request) Successful in 28s
0ebd476e5c
- Add SQL comment specifying fetched_at uses RFC3339 format
- Add godoc on Cache struct documenting sql.DB concurrency safety
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-08 07:50:30 +00:00
the.auditor left a comment

Review

Result: Approved — no issues. Closes #290.

5-line doc change: Cache struct godoc noting sql.DB concurrency safety, and -- RFC3339 SQL comment on fetched_at column. No functional change.

## Review **Result: Approved** — no issues. Closes #290. 5-line doc change: `Cache` struct godoc noting `sql.DB` concurrency safety, and `-- RFC3339` SQL comment on `fetched_at` column. No functional change.
fuzzy merged commit 0ebd476e5c into main 2026-07-08 07:50:32 +00:00
fuzzy deleted branch docs/290-cache-fetched-at-docs 2026-07-08 07:50:32 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/steeper!340
No description provided.