refactor: split jikan client into transport/cache/rate subpackages

This commit is contained in:
2026-06-16 00:50:12 +02:00
committed by Milas Holsting
parent 4f73b0ca97
commit 9e25745804
6 changed files with 477 additions and 373 deletions

View File

@@ -84,7 +84,7 @@ func (c *Client) refreshWatchOrder(ctx context.Context, id int) (watchorder.Watc
requestCtx, cancel := context.WithTimeout(ctx, 10*time.Second)
defer cancel()
result, err := watchorder.FetchWatchOrder(requestCtx, c.httpClient, watchOrderURL)
result, err := watchorder.FetchWatchOrder(requestCtx, c.fetcher.HTTPClient, watchOrderURL)
if err != nil {
var statusError *watchorder.HTTPStatusError
if errors.As(err, &statusError) && statusError.StatusCode == http.StatusNotFound {