fix: global value override

This commit is contained in:
langhuihui
2024-01-22 15:59:01 +08:00
parent b102419492
commit e82bc7e5d0
5 changed files with 40 additions and 22 deletions

2
io.go
View File

@@ -218,7 +218,7 @@ func (io *IO) receive(streamPath string, specific IIO) error {
if !isSubscribe {
puber := iPub.GetPublisher()
conf := puber.Config
io.Info("publish", zap.String("ptr", fmt.Sprintf("%p", io.Context)))
io.Info("publish", zap.String("ptr", fmt.Sprintf("%p", iPub)))
s.pubLocker.Lock()
defer s.pubLocker.Unlock()
if config.Global.EnableAuth {