all repos — searchix @ 052fce5bf2b1995fe45b88626e5342e61933d7cd

Search engine for NixOS, nix-darwin, home-manager and NUR users

refactor: use a single value for per-source import timeouts

Alan Pearce
commit

052fce5bf2b1995fe45b88626e5342e61933d7cd

parent

0dbfe37fbddb95c184d845c79bbe014597d55fe8

1 file changed, 1 insertion(+), 1 deletion(-)

changed files
M internal/fetcher/channel.gointernal/fetcher/channel.go
@@ -44,7 +44,7 @@ ) (f FetchedFiles, err error) {
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,