-
Notifications
You must be signed in to change notification settings - Fork 2
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
chore(eigenda): Bump eigenda-proxy to latest v1.6.0 #48
Conversation
if [ $? -ne 0 ]; then | ||
echo "==== Failed to start eigenda-proxy container ====" | ||
exit 1 | ||
fi |
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.
nit: this will catch if docker didn't manager to start the process, but won't catch if the process is started but crashed on startup.
if resp.StatusCode == http.StatusServiceUnavailable { | ||
return nil, SvcUnavailableErr |
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.
Did you really mean to remove this? Is ErrSvcUnavailable returned somewhere else?
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.
ahh incredible catch 🙏🏻
return nil, fmt.Errorf("received unexpected response code: %d", resp.StatusCode) | ||
b, err := io.ReadAll(resp.Body) | ||
if err != nil { | ||
return nil, err |
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.
nit: wrap err with resp.StatusCode
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.
LGTM. Just to be sure you deleted the ErrServiceUnavailable error returned in the GET path. That's the intended behavior right? To only have that in POST path?
Changes