pub fn spawn_sync_thread(&self) -> Result<()> {
        let interval = self.ctx.config.get_server_sync_interval()?;
        let std_interval = interval.to_std().unwrap();
        info!("Checking for symbols from S3 in background every {}",
              HumanDuration(interval));
        info!("Source Bucket: {}", self.ctx.config.get_aws_bucket_url()?);
        info!("Local SDKs: {}", self.ctx.stash.sdk_count()?);

        let ctx = self.ctx.clone();
        thread::spawn(move || {
            loop {
                let ctx = ctx.clone();
                run_isolated(move || ctx.stash.sync(Default::default()));
                thread::sleep(std_interval);
            }
        });

        Ok(())
    }
/// Spawns a background thread that runs the sync process.
Spawns a background thread that runs the sync process.
Spawns a background thread that runs the sync process .
pub fn spawn_sync_thread(&self) -> Result<()> {
        let interval = self.ctx.config.get_server_sync_interval()?;
        let std_interval = interval.to_std().unwrap();
        info!("Checking for symbols from S3 in background every {}",
              HumanDuration(interval));
        info!("Source Bucket: {}", self.ctx.config.get_aws_bucket_url()?);
        info!("Local SDKs: {}", self.ctx.stash.sdk_count()?);
        let ctx = self.ctx.clone();
        thread::spawn(move || {
            loop {
                let ctx = ctx.clone();
                run_isolated(move || ctx.stash.sync(Default::default()));
                thread::sleep(std_interval);
            }
        });
        Ok(())
    }
pub fn spawn_sync_thread ( & self ) -> Result < ( ) > { let interval = self . ctx . config . get_server_sync_interval ( ) ? ; let std_interval = interval . to_std ( ) . unwrap ( ) ; info ! ( " " HumanDuration ( interval ) ) ; info ! ( " " self ctx config get_aws_bucket_url ( ) ) ; info ! ( " " self ctx stash sdk_count ( ) ) ; let ctx = self . ctx . clone ( ) ; thread :: spawn ( move | | { loop { let ctx = ctx . clone ( ) ; run_isolated ( move | | ctx . stash . sync ( Default :: default ( ) ) ) ; thread :: sleep ( std_interval ) ; } } ) ; Ok ( ( ) ) }
Spawns a background thread that runs the sync process.
Spawns a background thread that runs the sync process .
&self