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(contrib/registry/servicecomb): ticker was shutdown prematurely #2749

Merged
merged 2 commits into from
Mar 26, 2023

Conversation

demoManito
Copy link
Member

@demoManito demoManito commented Mar 18, 2023

Description (what this PR does / why we need it):

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2023

Codecov Report

Merging #2749 (c399542) into main (f47a238) will not change coverage.
The diff coverage is n/a.

❗ Current head c399542 differs from pull request most recent head 57ea6a2. Consider uploading reports for the commit 57ea6a2 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main    #2749   +/-   ##
=======================================
  Coverage   84.78%   84.78%           
=======================================
  Files          88       88           
  Lines        3891     3891           
=======================================
  Hits         3299     3299           
  Misses        418      418           
  Partials      174      174           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@demoManito demoManito force-pushed the fix/servicecomb/ticker-close branch 3 times, most recently from 8e4ceb6 to e71af04 Compare March 21, 2023 07:35
@demoManito demoManito force-pushed the fix/servicecomb/ticker-close branch from e71af04 to f2c1ee7 Compare March 22, 2023 03:48
@@ -146,9 +147,9 @@ func (r *Registry) Register(_ context.Context, svcIns *registry.ServiceInstance)
if err != nil {
return err
}
ticker := time.NewTicker(30 * time.Second)
defer ticker.Stop()
Copy link
Member Author

Choose a reason for hiding this comment

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

image

@demoManito demoManito changed the title fix(contrib/registry/servicecomb): wrong stop ticker fix(contrib/registry/servicecomb): ticker was shutdown prematurely Mar 22, 2023
@daemon365 daemon365 added the LGTM label Mar 23, 2023
@shenqidebaozi shenqidebaozi merged commit 393bf4d into go-kratos:main Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants