Skip to content
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

Ingress clients #43

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Ingress clients #43

wants to merge 4 commits into from

Conversation

jackkleeman
Copy link
Contributor

Closes #37

Copy link

github-actions bot commented Nov 7, 2024

Test Results

  5 files  ±0    5 suites  ±0   1m 57s ⏱️ +10s
 42 tests ±0   42 ✅ ±0  0 💤 ±0  0 ❌ ±0 
104 runs  ±0  104 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 0e33acb. ± Comparison against base commit d8408da.

Comment on lines +35 to +42
resp, err := o.Client.Get(url.JoinPath("restate", "health").String())
if err != nil {
return nil, err
}

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("Ingress is not healthy: status %d", resp.StatusCode)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need that? I find very unexpected that when i create a client, before it's returned to me i already sent a request :)

I don't think it's a good idea to ping the runtime without user explicitly doing that, if you wanna let people ping the health, just add a method for that, but i would definitely remove it from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement an ingress client
2 participants