fix(image-proxy): use ArrayBuffer instead of Blob to prevent OOM on Node v24 (#5926)
This commit is contained in:
1 parent
c54a7c9a7e
commit
3e464a76f2
2 files changed
+19
-10
No files matched your search
@@ -112,9 +112,13 @@ export const createGetSetChannel = <TData>(name: string) => {
|
||||
/**
|
||||
* Set data in the channel
|
||||
* @param data data to be stored in the channel
|
||||
* @param options optional TTL in seconds
|
||||
*/
|
||||
setAsync: async (data: TData) => {
|
||||
setAsync: async (data: TData, options?: { ttlSeconds?: number }) => {
|
||||
await getSetClient.set(name, superjson.stringify(data));
|
||||
if (options?.ttlSeconds) {
|
||||
await getSetClient.expire(name, options.ttlSeconds);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Remove data from the channel
|
||||
|
||||
Reference in new issue
Block a user