Skip to content

Conversation

@aquarapid
Copy link

Supports multiple rules for a stream, as mentioned in the README

Supports multiple rules for a stream, as mentioned in the README

Signed-off-by: Jacques Grove <[email protected]>
Signed-off-by: Jacques Grove <[email protected]>
Signed-off-by: Jacques Grove <[email protected]>
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nits.

vtctl := "./lvtctl.sh"
tabletID := "test-400"
dbName := "vt_merchant"
argOffset := 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't have to use argOffset. It may be because you're calling flag.Parse in init. Can you move it into main and see if it works correctly?

Rules: rules,
}

var onDdlAction binlogdatapb.OnDDLAction
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can change this to: onDDLAction := binlogdatapb.OnDDLAction_value[strings.ToUpper(onDDL)].
Note that go standards require DDL to be capitalized inside variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants