Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Shen <overvenus@gmail.com>
  • Loading branch information
overvenus committed Jan 26, 2022
1 parent dde4fbc commit 56a504a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cdc/sink/mysql_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func parseSinkURIToParams(ctx context.Context, sinkURI *url.URL, opts map[string
}
if c <= 0 {
return nil, cerror.WrapError(cerror.ErrMySQLInvalidConfig,
fmt.Errorf("invalid worker-count %d", c))
fmt.Errorf("invalid worker-count %d, which must be greater than 0", c))
}
if c > maxWorkerCount {
log.Warn("worker-count too large",
Expand All @@ -136,7 +136,7 @@ func parseSinkURIToParams(ctx context.Context, sinkURI *url.URL, opts map[string
}
if c <= 0 {
return nil, cerror.WrapError(cerror.ErrMySQLInvalidConfig,
fmt.Errorf("invalid max-txn-row %d", c))
fmt.Errorf("invalid max-txn-row %d, which must be greater than 0", c))
}
if c > maxMaxTxnRow {
log.Warn("max-txn-row too large",
Expand Down

0 comments on commit 56a504a

Please sign in to comment.