initialize bug fixed
This commit is contained in:
parent
31e314ec87
commit
4495de8ae9
|
@ -399,7 +399,6 @@ func (module *Module) initialize(w http.ResponseWriter, r *http.Request, ps http
|
|||
|
||||
if dslWriteSuccess{
|
||||
lines := util.FileGetLines(dslFile)
|
||||
ctx := pipeline.AcquireContext()
|
||||
var (
|
||||
username string
|
||||
password string
|
||||
|
@ -408,7 +407,7 @@ func (module *Module) initialize(w http.ResponseWriter, r *http.Request, ps http
|
|||
username = cfg.BasicAuth.Username
|
||||
password = cfg.BasicAuth.Password
|
||||
}
|
||||
_,err,_:=replay.ReplayLines(ctx,lines,cfg.Schema,cfg.Host,username,password)
|
||||
_,err,_:=replay.ReplayLines(pipeline.AcquireContext(),lines,cfg.Schema,cfg.Host,username,password)
|
||||
if err!=nil{
|
||||
log.Error(err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue