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

No need for print #15

Closed
wants to merge 1 commit into from
Closed

No need for print #15

wants to merge 1 commit into from

Conversation

baelter
Copy link
Member

@baelter baelter commented Nov 1, 2024

puts is thread safe since ruby 2.5

@baelter baelter requested a review from a team as a code owner November 1, 2024 17:58
@@ -152,7 +152,7 @@ def write_cache
def public_ip(host = "checkip.amazonaws.com", port = 80) # rubocop:disable Metrics/MethodLength
Socket.tcp(host, port, connect_timeout: 3) do |sock|
sock.sync = true
sock.print "GET / HTTP/1.1\r\nHost: #{host}\r\nConnection: close\r\n\r\n"
sock.puts "GET / HTTP/1.1\r\nHost: #{host}\r\nConnection: close\r\n\r"
Copy link
Contributor

Choose a reason for hiding this comment

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

Guessing your 🧙 automation did this one (same for the specs), just checking if it was intentional :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Nah, let's keep print here

@baelter baelter closed this Nov 4, 2024
@baelter baelter deleted the puts branch November 4, 2024 08:32
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