Skip to content

Commit 2b89203

Browse files
OlegChuev-MDmarjune163
authored andcommitted
refactor(archive): renamed key for max archive workers
1 parent aeaadb0 commit 2b89203

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ghfs [options]
258258
-A|--global-archive
259259
Allow user to download the whole contents of current directory for all url paths.
260260
A download link will appear on top part of the page.
261-
--max-archive-workers <number>
261+
--archive-max-workers <number>
262262
Maximum number of concurrent archive operations.
263263
Set to -1 for unlimited (default).
264264
When the limit is reached, new archive requests will receive 429 Too Many Requests.

src/param/cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func NewCliCmd() *goNixArgParser.Command {
148148
err = options.AddFlagValues("archivedirsusers", "--archive-dir-user", "", nil, "file system path that allow archive files for specific users, <sep><fs-path>[<sep><user>...]")
149149
serverError.CheckFatal(err)
150150

151-
err = options.AddFlagValue("maxarchiveworkers", "--max-archive-workers", "", "-1", "maximum number of concurrent archive operations (-1 for unlimited)")
151+
err = options.AddFlagValue("archivemaxworkers", "--archive-max-workers", "", "-1", "maximum number of concurrent archive operations (-1 for unlimited)")
152152
serverError.CheckFatal(err)
153153

154154
err = options.AddFlag("globalcors", "--global-cors", "GHFS_GLOBAL_CORS", "enable CORS headers for all directories")
@@ -440,7 +440,7 @@ func CmdResultsToParams(results []*goNixArgParser.ParseResult) (params Params, e
440440
archiveDirsUsers, _ := result.GetStrings("archivedirsusers")
441441
param.ArchiveDirsUsers = SplitAllKeyValues(archiveDirsUsers)
442442

443-
param.ArchiveMaxWorkers, _ = result.GetInt("maxarchiveworkers")
443+
param.ArchiveMaxWorkers, _ = result.GetInt("archivemaxworkers")
444444

445445
// global restrict access
446446
if result.HasKey("globalrestrictaccess") {

0 commit comments

Comments
 (0)