-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pipelining followups #8
Conversation
|
||
<-p.ctx.Done() |
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.
This is the health endpoint bugfix.
// RetriesNoOutput applies the same logic as Retries, but for functions that return no output. | ||
func RetriesNoOutput[X pluginInput](f func(x X) error, a X, p *pipelineImpl, msg string) (time.Duration, error) { | ||
_, d, err := Retries(func(x X) (empty, error) { | ||
// TODO: probly the following function and its unit test should be axed |
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.
^^^^ !!!
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.
I agree that we probably don't need a no-input function right now -- is this+tests+above interface going to be reverted?
@@ -135,3 +140,41 @@ func TestLogFile(t *testing.T) { | |||
require.Contains(t, dataStr, "\nWriting logs to file:") | |||
}) | |||
} | |||
|
|||
func TestHealthEndpoint(t *testing.T) { |
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.
nice test 👍
// RetriesNoOutput applies the same logic as Retries, but for functions that return no output. | ||
func RetriesNoOutput[X pluginInput](f func(x X) error, a X, p *pipelineImpl, msg string) (time.Duration, error) { | ||
_, d, err := Retries(func(x X) (empty, error) { | ||
// TODO: probly the following function and its unit test should be axed |
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.
I agree that we probably don't need a no-input function right now -- is this+tests+above interface going to be reverted?
closing this PR and will re-open a new one shortly against |
See: algorand#147 for the continuation of this work