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

Redis sans EventMachine #23381

Merged
merged 1 commit into from
Feb 1, 2016
Merged

Redis sans EventMachine #23381

merged 1 commit into from
Feb 1, 2016

Conversation

matthewd
Copy link
Member

This new adapter does get a little more intimate with the redis-rb gem's implementation than I would like, but it's the least bad of the approaches I've come up with.


Apologies to anyone who was (privately or publicly) disappointed this wasn't included in #23305; it just had enough complexity to deserve separate attention.

This new adapter does get a little more intimate with the redis-rb gem's
implementation than I would like, but it's the least bad of the
approaches I've come up with.

class RedisAdapterTest::Hiredis < RedisAdapterTest
def cable_config
super.merge(driver: 'hiredis')
Copy link
Contributor

Choose a reason for hiding this comment

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

Does setting driver configure faye-websocket somehow? Because I don't understand it 😁

Copy link
Member Author

Choose a reason for hiding this comment

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

It's an option for the Redis library, which I want to ensure we work with.

Copy link
Contributor

Choose a reason for hiding this comment

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

Neat, yeah!

@jeremy
Copy link
Member

jeremy commented Jan 31, 2016

Fantastic 🤘

@@ -65,6 +65,7 @@ group :cable do
gem 'puma', require: false

gem 'em-hiredis', require: false
gem 'hiredis', require: false
Copy link
Member

Choose a reason for hiding this comment

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

What is the reason to have hiredis here?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's used here to ensure we work with that driver as well.

Copy link
Member

Choose a reason for hiding this comment

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

But isn't hiredis a dependency for em-hiredis? Do we need both?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added it to be clear that we're using hiredis directly somewhere, separate from the place that uses em-hiredis. Of course, test failures would tell us that too, so it doesn't really matter. ¯_(ツ)_/¯

Copy link
Member

Choose a reason for hiding this comment

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

I'm fine with both, so lets keep this way.

@rafaelfranca
Copy link
Member

:shipit:

matthewd added a commit that referenced this pull request Feb 1, 2016
@matthewd matthewd merged commit 8a51f6f into rails:master Feb 1, 2016
@matthewd matthewd deleted the uneventful-redis branch June 11, 2017 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants