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{
|
if dslWriteSuccess{
|
||||||
lines := util.FileGetLines(dslFile)
|
lines := util.FileGetLines(dslFile)
|
||||||
ctx := pipeline.AcquireContext()
|
|
||||||
var (
|
var (
|
||||||
username string
|
username string
|
||||||
password string
|
password string
|
||||||
|
@ -408,7 +407,7 @@ func (module *Module) initialize(w http.ResponseWriter, r *http.Request, ps http
|
||||||
username = cfg.BasicAuth.Username
|
username = cfg.BasicAuth.Username
|
||||||
password = cfg.BasicAuth.Password
|
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{
|
if err!=nil{
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue