From 5590b0ad71ec63cc75f41e5d20213f348b639ac7 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 1 Aug 2023 16:43:41 +0400 Subject: [PATCH] In upload service flags was renamed. --- cmd/dwelling-upload/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/dwelling-upload/main.go b/cmd/dwelling-upload/main.go index d761fa1..0dd8acc 100644 --- a/cmd/dwelling-upload/main.go +++ b/cmd/dwelling-upload/main.go @@ -21,10 +21,10 @@ import ( var ( listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)") - uploadDir *string = flag.String("upload-dir", "/srv/upload", "directory where uploaded files are stored") - keepForHours *int = flag.Int("keep-for", 36, "keep files for this much hours") + uploadDir *string = flag.String("dir", "/srv/upload", "directory where uploaded files are stored") + expiry *int = flag.Int("expiry", 36, "keep files for this much hours") storageSize *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads") - fileSizeLimit *int64 = flag.Int64("file-size", 128, "max. size in MiB for files") + fileSize *int64 = flag.Int64("file", 128, "max. size in MiB for files") showVersion *bool = flag.Bool("v", false, "show version") ) @@ -91,7 +91,7 @@ func main() { } hand := http.NewUploadHandlers(logFile, *uploadDir, &uploadDirSize, string(hashSalt), - *keepForHours, *storageSize, *fileSizeLimit) + *expiry, *storageSize, *fileSize) r := httpr.New()