pub fn main_loop( connection: &Connection, config: &Config, tag_index: &mut TagIndex, ) -> Result<()>