Skip to content

Conversation

@glaslos
Copy link

@glaslos glaslos commented Aug 18, 2024

  • Bump minimum Go version to 1.18
  • Addressing various linter warnings
  • Using an initiated HTTP client with a default timeout


//http client where we change the timeout
s.client = &http.Client{
Timeout: time.Second * 10,
Copy link
Owner

Choose a reason for hiding this comment

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

Same default as http.Get ?

Copy link
Author

Choose a reason for hiding this comment

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

http.Get uses the default client which has no timeout

mp.descriptorsReleased = make(chan bool)
//read all master process signals
signals := make(chan os.Signal)
signals := make(chan os.Signal, 1)
Copy link
Owner

Choose a reason for hiding this comment

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

Why switch to buffered ?

Copy link
Author

Choose a reason for hiding this comment

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

You can find the related discussion 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.

2 participants