botserver/src/main_module
Rodrigo Rodriguez cf7bd7ffa2
All checks were successful
BotServer CI / build (push) Successful in 8m38s
fix: Use spawn_blocking for Redis cache connection to prevent freezing
The init_redis() function was using synchronous blocking calls
(redis::Client::get_connection()) inside an async function, which
blocked the entire tokio runtime and caused botserver to freeze.

Changes:
- Wrap Redis connection calls in tokio::task::spawn_blocking()
- Runs blocking operations in separate thread pool
- Prevents tokio runtime from freezing during cache connection

This fixes the issue where botserver would hang indefinitely
when connecting to Valkey/Redis cache.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-15 12:21:33 +00:00
..
bootstrap.rs fix: Use spawn_blocking for Redis cache connection to prevent freezing 2026-02-15 12:21:33 +00:00
drive_utils.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
health.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
mod.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
server.rs Fix: Update source files and fix notify dependency reference 2026-02-13 22:30:57 +00:00
shutdown.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
types.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00