-
Notifications
You must be signed in to change notification settings - Fork 1
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
Implement ping manager #1
Conversation
33ea51e
to
e3df152
Compare
Thinking a bit more about it. We need to remove the use of interface all together. The design of this library should only be to allow calling functions at specific time. What happens in those functions is the decision of the developers using the library. Instead of using |
This naturally means that any reference to the word "Pinger" in this library becomes wrong |
workerpool.go
Outdated
|
||
type wpConfig struct { | ||
interval time.Duration | ||
dataFunc func() []byte |
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.
dataFunc func() []byte | |
callback func() error |
6201405
to
34d2c76
Compare
workerpool.go
Outdated
|
||
type wpConfig struct { | ||
interval time.Duration | ||
callback func() []byte |
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.
callback func() []byte | |
callback func() error |
5140cf1
to
fd32693
Compare
fd32693
to
30e2fe1
Compare
No description provided.