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

Cleanup lint warning #4309

Merged
merged 4 commits into from
Jul 14, 2021
Merged

Cleanup lint warning #4309

merged 4 commits into from
Jul 14, 2021

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented Jul 9, 2021

What changed?
Cleanup lint warning

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

@yux0 yux0 requested review from longquanzheng, yycptt and a team July 9, 2021 19:17
@coveralls
Copy link

coveralls commented Jul 9, 2021

Pull Request Test Coverage Report for Build 6e956782-28e2-4f32-b26e-7928c4814402

  • 13 of 30 (43.33%) changed or added relevant lines in 5 files are covered.
  • 146 unchanged lines in 17 files lost coverage.
  • Overall coverage decreased (-0.07%) to 56.666%

Changes Missing Coverage Covered Lines Changed/Added Lines %
common/persistence/nosql/nosqlplugin/cassandra/tasks.go 0 1 0.0%
service/history/execution/cache.go 10 13 76.92%
common/persistence/persistence-tests/executionManagerTestForEventsV2.go 0 6 0.0%
common/log/panic.go 2 9 22.22%
Files with Coverage Reduction New Missed Lines %
service/history/execution/cache.go 1 75.0%
common/task/weightedRoundRobinTaskScheduler.go 2 89.64%
common/types/mapper/thrift/shared.go 2 65.01%
service/history/queue/timer_queue_processor.go 2 58.77%
service/matching/matcher.go 2 91.46%
common/cache/lru.go 3 90.73%
common/persistence/dataManagerInterfaces.go 3 64.83%
common/persistence/nosql/nosqlplugin/cassandra/workflow.go 3 50.23%
common/persistence/executionManager.go 4 75.5%
common/persistence/statsComputer.go 4 95.71%
Totals Coverage Status
Change from base Build ecc17e7a-e500-49b5-9ecd-a76983f16543: -0.07%
Covered Lines: 77426
Relevant Lines: 136636

💛 - Coveralls

@@ -417,7 +417,7 @@ func (db *cdb) SelectTasks(ctx context.Context, filter *nosqlplugin.TasksFilter)

iter := query.Iter()
if iter == nil {
return nil, fmt.Errorf("GetTasks operation failed. Not able to create query iterator.")
Copy link
Contributor

@longquanzheng longquanzheng Jul 9, 2021

Choose a reason for hiding this comment

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

actually, can we change to selectTasks? Or remove getTasks

Copy link
Contributor

@longquanzheng longquanzheng left a comment

Choose a reason for hiding this comment

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

only a minor comment

@yux0 yux0 merged commit 6f989a3 into cadence-workflow:master Jul 14, 2021
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.

3 participants