chore: fit engine update

This commit is contained in:
langhuihui
2023-08-13 14:50:26 +08:00
parent b4389cce61
commit d637be6f61
2 changed files with 9 additions and 5 deletions

View File

@@ -27,7 +27,11 @@ func NewHDLPuller() *HDLPuller {
pool: make(util.BytesPool, 17),
}
}
func (puller *HDLPuller) Disconnect() {
if puller.Closer != nil {
puller.Closer.Close()
}
}
func (puller *HDLPuller) Connect() (err error) {
HDLPlugin.Info("connect", zap.String("remoteURL", puller.RemoteURL))
if strings.HasPrefix(puller.RemoteURL, "http") {