-
Notifications
You must be signed in to change notification settings - Fork 68
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
Add: linux time wheel #38
Conversation
12d4ca7
to
3dfe826
Compare
3dfe826
to
9e41344
Compare
6c62af0
to
d5cb050
Compare
Codecov Report
@@ Coverage Diff @@
## master #38 +/- ##
==========================================
+ Coverage 78.42% 78.90% +0.47%
==========================================
Files 26 29 +3
Lines 2364 2816 +452
==========================================
+ Hits 1854 2222 +368
- Misses 411 476 +65
- Partials 99 118 +19
Continue to review full report at Codecov.
|
fe97f3e
to
01fda6f
Compare
01fda6f
to
56c5be6
Compare
@AlexStocks how about open a online meeting to explain the code for reviewers? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can not see time wheel in Files changed
?
b646989
to
7d149de
Compare
7d149de
to
36bb08b
Compare
type TimerType int32 | ||
|
||
const ( | ||
TimerOnce TimerType = 0x1 << 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported const TimerOnce should have comment (or a comment on this block) or be unexported
}) | ||
} | ||
|
||
func GetDefaultTimerWheel() *TimerWheel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exported function GetDefaultTimerWheel should have comment or be unexported
var ( | ||
// nolint | ||
ErrTimeChannelFull = errors.New("timer channel full") | ||
// nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported var ErrTimeChannelClosed should be of the form "ErrTimeChannelClosed ..."
) | ||
|
||
var ( | ||
// nolint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment on exported var ErrTimeChannelFull should be of the form "ErrTimeChannelFull ..."
What this PR does:
Add:
1 linux time wheel