initialize bug fixed

This commit is contained in:
liugq 2023-02-10 18:16:05 +08:00
parent 31e314ec87
commit 4495de8ae9
1 changed files with 1 additions and 2 deletions

View File

@ -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)
}