From 052fce5bf2b1995fe45b88626e5342e61933d7cd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 23 May 2024 13:22:50 +0200 Subject: refactor: use a single value for per-source import timeouts --- 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 3756012..01c4ae8 100644 --- a/internal/fetcher/channel.go +++ b/internal/fetcher/channel.go @@ -44,7 +44,7 @@ func (i *ChannelFetcher) FetchIfNeeded( args := []string{ "--no-build-output", "--timeout", - strconv.Itoa(int(i.Source.FetchTimeout.Seconds() - 1)), + strconv.Itoa(int(i.Source.Timeout.Seconds() - 1)), fmt.Sprintf("<%s/%s>", i.Source.Channel, i.Source.ImportPath), "--attr", i.Source.Attribute, -- cgit 1.4.1