about summary refs log tree commit diff stats
path: root/internal/fetcher/channel.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-23 13:22:50 +0200
committerAlan Pearce2024-05-23 13:22:50 +0200
commit052fce5bf2b1995fe45b88626e5342e61933d7cd (patch)
treee3c9b49250acee26c6aee1d43501c1cdddb83fc6 /internal/fetcher/channel.go
parent0dbfe37fbddb95c184d845c79bbe014597d55fe8 (diff)
downloadsearchix-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/channel.go')
-rw-r--r--internal/fetcher/channel.go2
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,