update function definitions
This commit is contained in:
parent
0da7b9363c
commit
2ab69f039c
@ -12,7 +12,7 @@ const NAMESPACE_PREFIX: &str = "hero:job:";
|
|||||||
const BLPOP_TIMEOUT_SECONDS: usize = 5;
|
const BLPOP_TIMEOUT_SECONDS: usize = 5;
|
||||||
|
|
||||||
/// Initialize Redis connection for the actor
|
/// Initialize Redis connection for the actor
|
||||||
pub(crate) async fn initialize_redis_connection(
|
pub async fn initialize_redis_connection(
|
||||||
actor_id: &str,
|
actor_id: &str,
|
||||||
redis_url: &str,
|
redis_url: &str,
|
||||||
) -> Result<redis::aio::MultiplexedConnection, Box<dyn std::error::Error + Send + Sync>> {
|
) -> Result<redis::aio::MultiplexedConnection, Box<dyn std::error::Error + Send + Sync>> {
|
||||||
@ -33,7 +33,7 @@ pub(crate) async fn initialize_redis_connection(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Load job from Redis using Job struct
|
/// Load job from Redis using Job struct
|
||||||
pub(crate) async fn load_job_from_redis(
|
pub async fn load_job_from_redis(
|
||||||
redis_conn: &mut redis::aio::MultiplexedConnection,
|
redis_conn: &mut redis::aio::MultiplexedConnection,
|
||||||
job_id: &str,
|
job_id: &str,
|
||||||
actor_id: &str,
|
actor_id: &str,
|
||||||
|
Loading…
Reference in New Issue
Block a user