refactor: 分离解析推流和转发流

This commit is contained in:
ydajiang
2025-05-14 16:54:43 +08:00
parent 61e152e8ed
commit 24fc44f9c7
20 changed files with 931 additions and 781 deletions

View File

@@ -54,10 +54,10 @@ func CreateSinkDisconnectionMessage(sink Sink) string {
return fmt.Sprintf("%s sink断开连接. id: %s", sink.GetProtocol(), sink.GetID())
}
func ExecuteSyncEventOnSource(sourceId string, event func()) bool {
func ExecuteSyncEventOnTransStreamPublisher(sourceId string, event func()) bool {
source := SourceManager.Find(sourceId)
if source != nil {
source.ExecuteSyncEvent(event)
source.GetTransStreamPublisher().ExecuteSyncEvent(event)
return true
}