bilibili / overlord

Overlord是哔哩哔哩基于Go语言编写的memcache和redis&cluster的代理及集群管理功能,致力于提供自动化高可用的缓存服务解决方案。
https://www.bilibili.com
MIT License
2.22k stars 408 forks source link

fix: only log error when fails #131

Closed everpcpc closed 4 years ago

everpcpc commented 4 years ago

and make golint happy

codecov-commenter commented 4 years ago

Codecov Report

Merging #131 into master will decrease coverage by 0.03%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #131      +/-   ##
==========================================
- Coverage   48.22%   48.18%   -0.04%     
==========================================
  Files          66       66              
  Lines        6522     6527       +5     
==========================================
  Hits         3145     3145              
- Misses       3024     3029       +5     
  Partials      353      353              
Impacted Files Coverage Δ
platform/mesos/executor.go 0.00% <0.00%> (ø)
platform/mesos/scheduler.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d934a02...74bf1b8. Read the comment docs.

wayslog commented 4 years ago

well,make golint happy

everpcpc notifications@github.com 于2020年7月14日周二 下午12:36写道:

@everpcpc commented on this pull request.

In platform/mesos/executor.go https://github.com/bilibili/overlord/pull/131#discussion_r454094442:

@@ -238,7 +238,7 @@ func (ec *Executor) Run(c context.Context) { log.Infof("gracefully exiting because framework checkpointing is NOT enabled") return }

  • if time.Now().Sub(disconnected) > ec.cfg.RecoveryTimeout {
  • if time.Since(disconnected) > ec.cfg.RecoveryTimeout {

time.Since is just a shorthand for time.Now().Sub and suggested by golint.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bilibili/overlord/pull/131#discussion_r454094442, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACBQJUMCJ3UCQ4NLKPEWI3TR3PODFANCNFSM4NZAKS4A .

-- 欢天喜地敲锣鼓,开开心心搞优化