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

performance optimization: change time.After => time.NewTimer for 3.0 #1300

Merged
merged 21 commits into from
Jul 5, 2021
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
518be2b
build(deps): bump actions/cache from v2.1.4 to v2.1.5
dependabot[bot] Apr 19, 2021
3162e41
Merge pull request #1162 from apache/dependabot/github_actions/develo…
AlexStocks Apr 21, 2021
2138190
Merge branch 'develop' of https://github.com/apache/dubbo-go into dev…
AlexStocks Apr 27, 2021
bef8e95
Merge branch '3.0' into develop
AlexStocks Apr 27, 2021
a85b65b
Merge branch '3.0' into develop
AlexStocks May 9, 2021
9e38afe
Merge branch '3.0' into develop
AlexStocks May 10, 2021
f0ad730
Merge branch '3.0' into develop
AlexStocks May 10, 2021
4cb6e44
improve etcd version and change create to put (#1203)
ztelur May 15, 2021
56d9d71
Merge branch '3.0' into develop
AlexStocks May 15, 2021
cc74aa5
Merge branch '3.0' into develop
AlexStocks May 18, 2021
40082d4
Merge branch '3.0' into develop
AlexStocks May 21, 2021
727e346
Merge branch '3.0' into develop
AlexStocks Jun 20, 2021
268e072
Merge branch '3.0'
LaurenceLiZhixin Jun 21, 2021
0d0bd99
make the package v3router/judger test coverage rate reach 80% (#1260)
Mulavar Jun 24, 2021
912e120
Fix: Graceful shutdown bugs(supplement #1254) (#1257)
justxuewei Jun 24, 2021
aa4f87e
refine grpc test code (#1266)
Jun 25, 2021
c642c08
registry 默认值问题 (#1275)
XiaoWeiKIN Jun 25, 2021
be407bb
config center for more parameters (#1277)
zhaoyunxing92 Jun 27, 2021
b55682a
fix: add arch picture in readme and delete unused router field. (#1279)
LaurenceLiZhixin Jun 27, 2021
9f4b07a
performance optimization: change time.After => time.NewTimer
mark4z Jul 5, 2021
512882c
Merge remote-tracking branch 'origin/3.0' into 3.0
mark4z Jul 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions protocol/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ func waitGrpcExporter(providerServices map[string]*config.ServiceConfig) {
t := time.NewTicker(50 * time.Millisecond)
defer t.Stop()
pLen := len(providerServices)
ta := time.After(10 * time.Second)
ta := time.NewTimer(10 * time.Second)
defer ta.Stop()

for {
select {
Expand All @@ -128,7 +129,7 @@ func waitGrpcExporter(providerServices map[string]*config.ServiceConfig) {
if pLen == mLen {
return
}
case <-ta:
case <-ta.C:
panic("wait grpc exporter timeout when start grpc server")
}
}
Expand Down