Skip to content

Commit

Permalink
feat: added Clone trait for MemoryQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusToyama committed Mar 28, 2024
1 parent 53d0ce2 commit d1db72c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ use tracing::instrument;

use crate::{job_handle::MemoryJobHandle, types::JobRow};

#[derive(Clone)]
pub struct MemoryQueue {
jobs: Arc<RwLock<HashMap<Xid, JobRow>>>,
dead_jobs: Arc<RwLock<Vec<JobRow>>>,
Expand Down

0 comments on commit d1db72c

Please sign in to comment.