summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-19 14:48:16 +0300
committerPaul Buetow <paul@buetow.org>2026-05-19 14:48:16 +0300
commit622827ccb4c23915aeccaa39d3e8152dd2955afb (patch)
tree09e0e655fa1728e5f81defda9a2524609a78f2a4 /docs
parentb3ef7bf999023c263744f35ba37e016b8e872830 (diff)
Require explicit http.Client in podcast service (DIP)
Remove the silent nil-fallback in NewPodcastService / NewPodcastServiceWithLogger that fabricated a default http.Client when callers passed nil. The service now panics on nil, forcing callers to inject their own client and own the HTTP timeout / transport policy explicitly. DefaultHTTPClientTimeout remains exported so production wiring (cmd/player/main.go) keeps a sensible default at the composition root, not buried in the service. Updated TestPodcastService_NilHTTPClient_Defaults to TestPodcastService_NilHTTPClient_Panics to document the new contract. All production call sites already pass a non-nil client. Refs task 8a. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions