diff --git a/crates/huginn-daemon/src/index/tests.rs b/crates/huginn-daemon/src/index/tests.rs index b70fdc9..c4fb3f6 100644 --- a/crates/huginn-daemon/src/index/tests.rs +++ b/crates/huginn-daemon/src/index/tests.rs @@ -1143,6 +1143,8 @@ fn shared_with( closed, searches: searches.into(), found: Vec::new(), + source_searches: VecDeque::new(), + sources_found: Vec::new(), next_ticket: 0, }), Condvar::new(), diff --git a/crates/huginn-daemon/src/serve.rs b/crates/huginn-daemon/src/serve.rs index cc8e6ed..72db18c 100644 --- a/crates/huginn-daemon/src/serve.rs +++ b/crates/huginn-daemon/src/serve.rs @@ -167,7 +167,7 @@ pub fn startup( ) -> Result<(Daemon, CultNetRudpServerHub, CultNetSchemaRegistry)> where E: Embedder + Send + 'static, - V: VectorIndex + Send + 'static, + V: VectorIndex + crate::sources::SourceIndex + Send + 'static, { let mind = Mind::open(&options.state_root, &options.instance)?; let hub = bind(options.bind, &runtime_id(&options.instance))?; diff --git a/crates/huginn-daemon/src/sources/git.rs b/crates/huginn-daemon/src/sources/git.rs index ee02b92..af41e21 100644 --- a/crates/huginn-daemon/src/sources/git.rs +++ b/crates/huginn-daemon/src/sources/git.rs @@ -87,7 +87,9 @@ impl Mirror { pub fn fetch(&self, remote: &str) -> Result { if !self.dir.join("HEAD").exists() { std::fs::create_dir_all(&self.dir).with_context(|| format!("creating {}", self.dir.display()))?; - run(Command::new("git").arg("init").arg("--bare").arg("--quiet").arg(&self.dir), "initialise a mirror")?; + let mut init = Command::new("git"); + init.arg("init").arg("--bare").arg("--quiet").arg(&self.dir); + run(init, "initialise a mirror")?; } let refspec = format!("+refs/heads/{0}:refs/heads/{0}", self.branch); run(git(&self.dir, &["fetch", "--quiet", "--no-tags", remote, &refspec]), "fetch the default branch")?;