fix:puller.go init function change p.Plugin to plugin

feature:auto init shutdown.sh or shutdown.bat when program start
This commit is contained in:
pg
2025-01-02 19:15:48 +08:00
committed by pggiroro
parent 0caba3d496
commit cbe9f2d645
4 changed files with 32 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ func (p *PullJob) GetPullJob() *PullJob {
func (p *PullJob) Init(puller IPuller, plugin *Plugin, streamPath string, conf config.Pull, pubConf *config.Publish) *PullJob {
if pubConf == nil {
p.PublishConfig = p.Plugin.GetCommonConf().Publish
p.PublishConfig = plugin.GetCommonConf().Publish
} else {
p.PublishConfig = *pubConf
}