Skip to content

Commit 18ed02a

Browse files
committed
Simplify send_text implementation
1 parent d334100 commit 18ed02a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

livekit-rtc/livekit/rtc/participant.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from ._proto.track_pb2 import (
3535
ParticipantTrackPermission,
3636
)
37-
from ._utils import BroadcastQueue, split_utf8
37+
from ._utils import BroadcastQueue
3838
from .track import LocalTrack
3939
from .track_publication import (
4040
LocalTrackPublication,
@@ -623,8 +623,7 @@ async def send_text(
623623
total_size=total_size,
624624
)
625625

626-
for chunk in split_utf8(text, STREAM_CHUNK_SIZE):
627-
await writer.write(chunk)
626+
await writer.write(text)
628627
await writer.aclose()
629628

630629
return writer.info

0 commit comments

Comments
 (0)