升级playblock

This commit is contained in:
dexter
2022-03-27 11:37:19 +08:00
parent 40a9b74ea4
commit 3aee7da66f
5 changed files with 109 additions and 3 deletions

View File

@@ -276,6 +276,7 @@ func (s *Stream) run() {
}
if s.action(ACTION_PUBLISH) {
io := v.Value.getIO()
io.Spesic = v.Value
io.Stream = s
io.StartTime = time.Now()
io.Logger = s.With(zap.String("type", io.Type))
@@ -298,6 +299,7 @@ func (s *Stream) run() {
}
suber := v.Value
io := suber.getIO()
io.Spesic = suber
s.Subscribers = append(s.Subscribers, suber)
sbConfig := io.Config
if wt := sbConfig.WaitTimeout.Duration(); wt > s.WaitTimeout {