[Partner Nodes] hash video via memoryview to avoid memory copy
Some checks failed
Python Linting / Run Ruff (push) Has been cancelled
Python Linting / Run Pylint (push) Has been cancelled

Signed-off-by: bigcat88 <bigcat88@icloud.com>
This commit is contained in:
bigcat88 2026-05-25 19:17:26 +03:00
parent e3b8436a90
commit bc1a2188e7
No known key found for this signature in database
GPG Key ID: 1F0BF0EC3CF22721

View File

@ -317,7 +317,7 @@ async def _seedance_virtual_library_upload_video_asset(
) -> str:
buf = BytesIO()
video.save_to(buf, format=Types.VideoContainer.MP4, codec=Types.VideoCodec.H264)
video_hash = hashlib.sha256(buf.getvalue()).hexdigest()
video_hash = hashlib.sha256(buf.getbuffer()).hexdigest()
public_url = await upload_video_to_comfyapi(cls, video, wait_label=wait_label)
create_resp = await sync_op(
cls,