引擎升级

This commit is contained in:
dexter
2022-03-13 00:11:40 +08:00
parent 13e8d4e6a2
commit 9ebd3a523b
2 changed files with 24 additions and 27 deletions

View File

@@ -10,13 +10,11 @@ import (
"go.uber.org/zap"
. "m7s.live/engine/v4"
"m7s.live/engine/v4/codec"
"m7s.live/engine/v4/log"
"m7s.live/engine/v4/util"
)
func (puller *HDLPuller) Connect() (err error) {
log.Info("connect", zap.String("remoteURL", puller.RemoteURL))
plugin.Info("connect", zap.String("remoteURL", puller.RemoteURL))
if strings.HasPrefix(puller.RemoteURL, "http") {
var res *http.Response
if res, err = http.Get(puller.RemoteURL); err == nil {
@@ -29,7 +27,7 @@ func (puller *HDLPuller) Connect() (err error) {
}
}
if err != nil {
log.Error("connect", zap.Error(err))
puller.Error("connect", zap.Error(err))
}
return
}