From 4969d2acbb57aa2f4bf1d9fe4b69bdf65dc46309 Mon Sep 17 00:00:00 2001 From: Jasper Ginn Date: Sat, 25 May 2024 21:08:29 +0200 Subject: [PATCH] chore: cleanup --- cloud_function/fn_pipes.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud_function/fn_pipes.py b/cloud_function/fn_pipes.py index 2ccb638..b71495c 100644 --- a/cloud_function/fn_pipes.py +++ b/cloud_function/fn_pipes.py @@ -75,8 +75,7 @@ def __init__( def upload_messages_chunk(self, payload: IO, index: int) -> None: key = f"{self._key_prefix}/{index}.json" if self._key_prefix else f"{index}.json" blob = self._bucket.blob(key) - body = payload.read() - blob.upload_from_string(body) + blob.upload_from_string(payload.read()) class PipesCloudLoggerMessageWriterChannel(PipesMessageWriterChannel):