aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 7bb05c2..ea7a45b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -69,7 +69,7 @@ async fn main() {
},
Err(database::Error::Db(sqlx::Error::RowNotFound)) => {
- // TODO: mirror
+ mirror().unwrap();
db.repo_insert(db_repo).await.unwrap();
},
@@ -78,3 +78,12 @@ async fn main() {
}
}
}
+
+
+fn mirror() -> Result<(), Box<dyn std::error::Error>> {
+ // mirror database
+ // update description
+ // copy cgitrc
+
+ Ok(())
+}