mirror of
https://github.com/Monibuca/plugin-hdl.git
synced 2025-10-06 17:27:03 +08:00
引擎升级
This commit is contained in:
6
pull.go
6
pull.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user