Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type conversion for indexed value type #2245

Merged
merged 4 commits into from
Jul 22, 2019
Merged

Fix type conversion for indexed value type #2245

merged 4 commits into from
Jul 22, 2019

Conversation

vancexu
Copy link
Contributor

@vancexu vancexu commented Jul 22, 2019

No description provided.

@vancexu vancexu requested a review from wxing1292 July 22, 2019 20:49
common/util.go Outdated
// ConvertIndexedValueTypeToThriftType takes fieldType as interface{} and convert to IndexedValueType.
// Because different implementation of dynamic config client may lead to different types
func ConvertIndexedValueTypeToThriftType(fieldType interface{}, logger log.Logger) workflow.IndexedValueType {
switch fieldType.(type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

switch type := fieldType.(type) ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@vancexu vancexu merged commit e73fc9f into master Jul 22, 2019
@vancexu vancexu deleted the fixdytype branch July 22, 2019 21:21
vancexu added a commit that referenced this pull request Jul 22, 2019
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