1
0

In var () section removed unnecessary type declarations.

This commit is contained in:
Alexander Andreev 2023-08-06 01:18:41 +04:00
parent d919d00cc0
commit 5bd6120ae5
Signed by: Arav
GPG Key ID: D22A817D95815393
2 changed files with 8 additions and 8 deletions

View File

@ -10,10 +10,10 @@ import (
) )
var ( var (
uploadDir *string = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored") uploadDir = flag.String("dir", "/srv/upload", "path to a directory where uploaded files are stored")
expiry *time.Duration = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours") expiry = flag.Duration("expiry", 36*time.Hour, "keep files for this much hours")
showVersion *bool = flag.Bool("v", false, "show version") showVersion = flag.Bool("v", false, "show version")
) )
var version string var version string

View File

@ -20,11 +20,11 @@ import (
) )
var ( var (
listenAddress *string = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)") listenAddress = flag.String("listen", "/var/run/dwelling-upload/sock", "listen address (ip:port|unix_path)")
uploadDir *string = flag.String("dir", "/srv/upload", "directory where uploaded files are stored") uploadDir = flag.String("dir", "/srv/upload", "directory where uploaded files are stored")
expiry *int = flag.Int("expiry", 36, "keep files for this much hours") expiry = flag.Int("expiry", 36, "keep files for this much hours")
storageSize *int64 = flag.Int64("storage", 102400, "storage size in MiB for uploads") storageSize = flag.Int64("storage", 102400, "storage size in MiB for uploads")
fileSize *int64 = flag.Int64("file", 128, "max. size in MiB for files") fileSize = flag.Int64("file", 128, "max. size in MiB for files")
showVersion *bool = flag.Bool("v", false, "show version") showVersion *bool = flag.Bool("v", false, "show version")
) )