You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands/job/worker.go
+3-11Lines changed: 3 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -11,20 +11,13 @@ import (
11
11
)
12
12
13
13
vartipsetWorkerFlagsstruct {
14
-
queuestring
15
-
concurrencyint
14
+
queuestring
16
15
}
17
16
18
17
varTipSetWorkerCmd=&cli.Command{
19
18
Name: "tipset-worker",
20
19
Usage: "start a tipset-worker that consumes tasks from the provided queuing system and performs indexing",
21
20
Flags: []cli.Flag{
22
-
&cli.IntFlag{
23
-
Name: "concurrency",
24
-
Usage: "Concurrency sets the maximum number of concurrent processing of tasks. If set to a zero or negative value it will be set to the number of CPUs usable by the current process.",
25
-
Value: 1,
26
-
Destination: &tipsetWorkerFlags.concurrency,
27
-
},
28
21
&cli.StringFlag{
29
22
Name: "queue",
30
23
Usage: "Name of queue system worker will consume work from.",
@@ -43,9 +36,8 @@ var TipSetWorkerCmd = &cli.Command{
0 commit comments