[*] 日常优化

This commit is contained in:
acgist
2023-12-19 07:08:04 +08:00
parent 11951b78ad
commit 1ff062000e

View File

@@ -319,17 +319,13 @@ public interface Constant {
* type 媒体类型 * type 媒体类型
* producerId 生产者终端ID * producerId 生产者终端ID
*/ */
public static final BiFunction<String, String, String> STREAM_ID_PRODUCER public static final BiFunction<String, String, String> STREAM_ID_PRODUCER = (type, producerId) -> type + "::" + producerId;
=
(type, producerId) -> type + "::" + producerId;
/** /**
* 消费者ID生成器 * 消费者ID生成器
* producerStreamId 生产者媒体ID * producerStreamId 生产者媒体ID
* consumerId 消费者终端ID * consumerId 消费者终端ID
*/ */
public static final BiFunction<String, String, String> STREAM_ID_CONSUMER public static final BiFunction<String, String, String> STREAM_ID_CONSUMER = (producerStreamId, consumerId) -> producerStreamId + "->" + consumerId;
=
(producerStreamId, consumerId) -> producerStreamId + "->" + consumerId;
} }