summaryrefslogtreecommitdiff
path: root/rhimport/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'rhimport/core.go')
-rw-r--r--rhimport/core.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/rhimport/core.go b/rhimport/core.go
index e1ba735..6fb0bcb 100644
--- a/rhimport/core.go
+++ b/rhimport/core.go
@@ -120,6 +120,7 @@ type Context struct {
AutotrimLevel int
UseMetaData bool
SourceUri string
+ AttachmentChan <-chan []byte
SourceFile string
DeleteSourceFile bool
DeleteSourceDir bool
@@ -146,6 +147,7 @@ func NewContext(conf *Config, db *rddb.DBChan) *Context {
ctx.NormalizationLevel = conf.ImportParamDefaults.NormalizationLevel
ctx.AutotrimLevel = conf.ImportParamDefaults.AutotrimLevel
ctx.UseMetaData = conf.ImportParamDefaults.UseMetaData
+ ctx.AttachmentChan = nil
ctx.SourceFile = ""
ctx.DeleteSourceFile = false
ctx.DeleteSourceDir = false