huskies: merge 735_story_attach_statuseventbuffer_to_each_agent_session_scoped_per_project_reset_on_restart
This commit is contained in:
@@ -52,16 +52,17 @@ impl Services {
|
||||
/// bot display name.
|
||||
pub fn new_test(project_root: std::path::PathBuf, bot_name: String) -> std::sync::Arc<Self> {
|
||||
let (_perm_tx, perm_rx) = mpsc::unbounded_channel();
|
||||
let agents = std::sync::Arc::new(crate::agents::AgentPool::new_test(3000));
|
||||
std::sync::Arc::new(Self {
|
||||
project_root,
|
||||
agents: std::sync::Arc::new(crate::agents::AgentPool::new_test(3000)),
|
||||
status: agents.status_broadcaster(),
|
||||
agents,
|
||||
bot_name,
|
||||
bot_user_id: String::new(),
|
||||
ambient_rooms: std::sync::Arc::new(std::sync::Mutex::new(HashSet::new())),
|
||||
perm_rx: std::sync::Arc::new(TokioMutex::new(perm_rx)),
|
||||
pending_perm_replies: std::sync::Arc::new(TokioMutex::new(HashMap::new())),
|
||||
permission_timeout_secs: 120,
|
||||
status: std::sync::Arc::new(StatusBroadcaster::new()),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user