aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2023-12-18 17:57:46 +0100
committerPřemysl Eric Janouch <p@janouch.name>2023-12-18 17:57:46 +0100
commit67336355c3b6f90e11f95f1b68766255e94a2db7 (patch)
tree8d7f01886edec211eedc07b9d353bcabbe011d39 /main.go
parentc471a64ab8a4d3e90fb0050b5b4f68a187c2b02e (diff)
downloadgallery-67336355c3b6f90e11f95f1b68766255e94a2db7.tar.gz
gallery-67336355c3b6f90e11f95f1b68766255e94a2db7.tar.xz
gallery-67336355c3b6f90e11f95f1b68766255e94a2db7.zip
Update comments
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/main.go b/main.go
index 0a96007..5fdcd22 100644
--- a/main.go
+++ b/main.go
@@ -701,6 +701,7 @@ func (i *importer) Import(path string) error {
}
// cmdImport adds files to the "entry" table.
+// TODO: Consider making this copy rather than symlink images.
func cmdImport(args []string) error {
if len(args) < 1 {
return errors.New("usage: GD ROOT...")
@@ -754,7 +755,8 @@ func cmdImport(args []string) error {
return nil
}
-// cmdSync is like import, but clears the "entry" table beforehands.
+// cmdSync ensures the given (sub)roots are accurately reflected
+// in the database.
func cmdSync(args []string) error {
if len(args) < 1 {
return errors.New("usage: GD ROOT...")
@@ -763,7 +765,8 @@ func cmdSync(args []string) error {
return err
}
- // TODO: Should this run in a transaction?
+ // TODO: Probably make this run in a transaction,
+ // if only to get exclusivity.
return nil
}