diff options
author | Alan Pearce | 2024-05-23 13:22:50 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-23 13:22:50 +0200 |
commit | 052fce5bf2b1995fe45b88626e5342e61933d7cd (patch) | |
tree | e3c9b49250acee26c6aee1d43501c1cdddb83fc6 /internal/fetcher | |
parent | 0dbfe37fbddb95c184d845c79bbe014597d55fe8 (diff) | |
download | searchix-052fce5bf2b1995fe45b88626e5342e61933d7cd.tar.lz searchix-052fce5bf2b1995fe45b88626e5342e61933d7cd.tar.zst searchix-052fce5bf2b1995fe45b88626e5342e61933d7cd.zip |
refactor: use a single value for per-source import timeouts
Diffstat (limited to 'internal/fetcher')
-rw-r--r-- | internal/fetcher/channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
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, |