mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from arq.connections import create_pool, RedisSettings, ArqRedis
|
||||
import msgpack
|
||||
|
||||
from core.config import env_config
|
||||
|
||||
@@ -12,4 +13,8 @@ def get_redis_settings() -> RedisSettings:
|
||||
|
||||
|
||||
async def get_arq_pool() -> ArqRedis:
|
||||
return await create_pool(get_redis_settings())
|
||||
return await create_pool(
|
||||
get_redis_settings(),
|
||||
job_serializer=msgpack.packb, # type: ignore
|
||||
job_deserializer=lambda b: msgpack.unpackb(b, raw=False), # noqa: E731
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user