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

Update index.js #26

Merged
merged 1 commit into from
Nov 22, 2022
Merged

Conversation

ainesophaur
Copy link
Contributor

switch from using this.redis_pings in favor of this.redis_ping()

switch from using this.redis_pings in favor of this.redis_ping()
@msimerson msimerson merged commit 17ae5ae into haraka:master Nov 22, 2022
@msimerson
Copy link
Member

Should this.redis_ping() still be in register()? If it's just throwing an error at startup, it's not doing any good.

@ainesophaur
Copy link
Contributor Author

ainesophaur commented Nov 22, 2022 via email

@msimerson
Copy link
Member

That sounds like your answer is yes.

@ainesophaur
Copy link
Contributor Author

Actually, no. I mistakenly left it in when I was doing a 3 way merge from my local branch to my GH fork. I just made commit 0d5ed36 which removes the call within the register method.

@msimerson msimerson mentioned this pull request Nov 24, 2022
@superman20
Copy link
Contributor

superman20 commented Jan 18, 2023

I'm a Windows user and don't use redis at all. The new construct throws an uncaught error every time rendering startup impossible. Not calling:

this.merge_redis_ini();
this.redis_ping();
this.register_hook('init_master',  'init_redis_plugin');
this.register_hook('init_child',   'init_redis_plugin');

solves the problem for me (and incidentally gets rid of the periodic connection error messages to redis). I have a patch that adds a disabled option to the config and everywhere that is true, it skips any redis calls (including the ones above in register), but that might not be quite what you're looking for.

Edited for clarity: the error I get is the "redis not initialized" error at haraka-plugin-redis\index.js:148

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