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
maxQueueSize=flag.Int("max_queue_size", 100, "The size of job queue")
91
-
maxBatchSize=flag.Int("max_batch_size", 100, "The max size of batches sent to workers")
90
+
maxQueueSize=flag.Int("max_queue_size", 1, "The size of job queue")
91
+
maxBatchSize=flag.Int("max_batch_size", 1, "The max size of batches sent to workers")
92
92
maxWorkers=flag.Int("max_workers", 2, "The number of workers to start")
93
93
)
94
94
flag.Parse()
95
95
96
96
// allocate the XML batch reader
97
97
reader:= xmlWorkerBatch.Reader{}
98
-
reader.Init(*maxQueueSize, *maxWorkers, *maxBatchSize, doWork, work.JobErrorsFatalLogFunction, work.NoLogFunction) // work.PrintlnFunction is an alternative
98
+
reader.Init(*maxQueueSize, *maxWorkers, *maxBatchSize, doWork, work.JobErrorsFatalLogFunction, work.PrintlnFunction) // work.PrintlnFunction is an alternative
0 commit comments