From 0f5508013d776f8806a87957f80e74c7f74c72eb Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2024 18:13:07 +0200 Subject: feat(config): print durations and URLs with human values --- internal/fetcher/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/fetcher/channel.go') diff --git a/internal/fetcher/channel.go b/internal/fetcher/channel.go index cadbab2..5dc84b4 100644 --- a/internal/fetcher/channel.go +++ b/internal/fetcher/channel.go @@ -25,7 +25,7 @@ type ChannelFetcher struct { func (i *ChannelFetcher) FetchIfNeeded( parent context.Context, ) (f FetchedFiles, updated bool, err error) { - ctx, cancel := context.WithTimeout(parent, i.Source.FetchTimeout) + ctx, cancel := context.WithTimeout(parent, i.Source.FetchTimeout.Duration) defer cancel() dest := i.DataPath -- cgit 1.4.1