make agent manager singleton (#4880)
This commit is contained in:
@@ -18,7 +18,7 @@ pub struct AppState {
|
||||
|
||||
impl AppState {
|
||||
pub async fn new() -> anyhow::Result<Arc<AppState>> {
|
||||
let agent_manager = Arc::new(AgentManager::new(None).await?);
|
||||
let agent_manager = AgentManager::instance().await?;
|
||||
Ok(Arc::new(Self {
|
||||
agent_manager,
|
||||
recipe_file_hash_map: Arc::new(Mutex::new(HashMap::new())),
|
||||
|
||||
Reference in New Issue
Block a user