about summary refs log tree commit diff stats
path: root/internal/importer/importer.go
diff options
context:
space:
mode:
authorAlan Pearce2024-05-09 20:10:23 +0200
committerAlan Pearce2024-05-09 20:10:23 +0200
commit8ab9adf719090e213bd91b2747986ba6ef94576d (patch)
tree66f2812851f8ac1ff98af39e6863d0907e090c67 /internal/importer/importer.go
parent631c02ac689b3366987918737e2b09f52fb16dda (diff)
downloadsearchix-8ab9adf719090e213bd91b2747986ba6ef94576d.tar.lz
searchix-8ab9adf719090e213bd91b2747986ba6ef94576d.tar.zst
searchix-8ab9adf719090e213bd91b2747986ba6ef94576d.zip
fix: pointer type mismatch
Diffstat (limited to 'internal/importer/importer.go')
-rw-r--r--internal/importer/importer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/importer/importer.go b/internal/importer/importer.go
index 4d563fd..1338615 100644
--- a/internal/importer/importer.go
+++ b/internal/importer/importer.go
@@ -28,7 +28,7 @@ type Importer interface {
 }
 
 func NewNixpkgsChannelImporter(
-	source Source,
+	source *Source,
 	dataPath string,
 	logger *slog.Logger,
 ) *NixpkgsChannelImporter {
@@ -43,7 +43,7 @@ func NewNixpkgsChannelImporter(
 	}
 }
 
-func NewChannelImporter(source Source, dataPath string, logger *slog.Logger) *ChannelImporter {
+func NewChannelImporter(source *Source, dataPath string, logger *slog.Logger) *ChannelImporter {
 	indexPath := dataPath
 	fullpath := path.Join(dataPath, source.Channel)
 
@@ -58,7 +58,7 @@ func NewChannelImporter(source Source, dataPath string, logger *slog.Logger) *Ch
 type importConfig struct {
 	IndexPath string
 	Filename  string
-	Source    Source
+	Source    *Source
 	Logger    *slog.Logger
 }