-
Notifications
You must be signed in to change notification settings - Fork 280
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
Conversation
Bump. Any feedback on this PR? |
lib/rollbar/notifier.rb
Outdated
end | ||
|
||
def null_proxy | ||
OpenStruct.new(:host => nil, :port => nil, :user => nil, :password => nil) |
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.
Why OpenStruct and not just a plain struct? i.e.
Struct.new(:host, :port, :user, :password).new
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.
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.
This seems like a reasonable change to me. |
@@ -8,6 +8,7 @@ | |||
require 'rollbar/delay/thread' | |||
require 'rollbar/logger_proxy' | |||
require 'rollbar/item' | |||
require 'ostruct' |
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.
Is this one redundant?
No description provided.