about summary refs log tree commit diff stats
path: root/internal/fetcher/nixpkgs-channel.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-20 18:13:07 +0200
committerAlan Pearce2024-05-20 18:13:07 +0200
commit0f5508013d776f8806a87957f80e74c7f74c72eb (patch)
tree1d7b9bbe1b296d08d2ca9e740dc546cccaf4e1df /internal/fetcher/nixpkgs-channel.go
parentd0c2de9e762fb476b5cb53bb5129bf8af8cb9b45 (diff)
downloadsearchix-0f5508013d776f8806a87957f80e74c7f74c72eb.tar.lz
searchix-0f5508013d776f8806a87957f80e74c7f74c72eb.tar.zst
searchix-0f5508013d776f8806a87957f80e74c7f74c72eb.zip
feat(config): print durations and URLs with human values
Diffstat (limited to 'internal/fetcher/nixpkgs-channel.go')
-rw-r--r--internal/fetcher/nixpkgs-channel.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fetcher/nixpkgs-channel.go b/internal/fetcher/nixpkgs-channel.go
index c135641..e36728c 100644
--- a/internal/fetcher/nixpkgs-channel.go
+++ b/internal/fetcher/nixpkgs-channel.go
@@ -32,7 +32,7 @@ var filesToFetch = map[string]string{
 func (i *NixpkgsChannelFetcher) 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()
 
 	root := i.DataPath