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

Adds proxy server support. #626

Merged
merged 5 commits into from
Sep 20, 2017
Merged

Adds proxy server support. #626

merged 5 commits into from
Sep 20, 2017

Conversation

petelacey
Copy link
Contributor

No description provided.

@petelacey
Copy link
Contributor Author

Bump. Any feedback on this PR?

end

def null_proxy
OpenStruct.new(:host => nil, :port => nil, :user => nil, :password => nil)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why OpenStruct and not just a plain struct? i.e.

Struct.new(:host, :port, :user, :password).new

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be honest, this started life as a Struct, then an abandoned refactoring changed it to an OpenStruct and I neglected to change it back. Happy to do that. It makes this code more concise.

@rokob
Copy link
Contributor

rokob commented Aug 23, 2017

This seems like a reasonable change to me.

@rokob rokob merged commit efe6468 into rollbar:master Sep 20, 2017
@@ -8,6 +8,7 @@
require 'rollbar/delay/thread'
require 'rollbar/logger_proxy'
require 'rollbar/item'
require 'ostruct'
Copy link

@printercu printercu Nov 21, 2017

Choose a reason for hiding this comment

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

Is this one redundant?

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.

3 participants