We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 074774a commit 924bf21Copy full SHA for 924bf21
src/mongoshake/collector/main/collector.go
@@ -240,8 +240,9 @@ func sanitizeOptions() error {
240
if len(conf.Options.TunnelAddress) > conf.Options.WorkerNum {
241
return errors.New("then length of tunnel_address with type 'direct' shouldn't bigger than worker number")
242
}
243
- if conf.Options.ReplayerExecutor < 1 {
244
- return errors.New("executor number should be large than 1")
+ if conf.Options.ReplayerExecutor <= 0 {
+ conf.Options.ReplayerExecutor = 1
245
+ // return errors.New("executor number should be large than 1")
246
247
if conf.Options.ReplayerConflictWriteTo != executor.DumpConflictToDB &&
248
conf.Options.ReplayerConflictWriteTo != executor.DumpConflictToSDK &&
0 commit comments