mirror of
https://github.com/lkmio/lkm.git
synced 2025-10-05 07:06:57 +08:00
refactor: 分离解析推流和转发流
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user