You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there, I've been using eredis and it has worked perfect all this time.
I am using eredis through a small wrapper module to simplify calls and query patterns.
The next function wraps a query abstracting the conection to eredis:
redisq(Q) -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), V.
This worked just fine until otp21. The data gets retrieved but now
the caller process gets exit messages with the form {'EXIT',<0.13696.0>,normal}
I had to modify the wrapper query function to this to avoid leaking messages: redisq(Q) -> Parent = self(), Ref = make_ref(), spawn(fun() -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), Parent ! {Ref, V} end), receive {Ref, V} -> V end.
Is it normal to receive that 'EXIT' messages or am I using eredis badly?
The text was updated successfully, but these errors were encountered:
Hello there, I've been using eredis and it has worked perfect all this time.
I am using eredis through a small wrapper module to simplify calls and query patterns.
The next function wraps a query abstracting the conection to eredis:
redisq(Q) -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), V.
This worked just fine until otp21. The data gets retrieved but now
the caller process gets exit messages with the form {'EXIT',<0.13696.0>,normal}
I had to modify the wrapper query function to this to avoid leaking messages:
redisq(Q) -> Parent = self(), Ref = make_ref(), spawn(fun() -> C = redis_conn(), {ok, V} = eredis:q(C, Q), eredis:stop(C), Parent ! {Ref, V} end), receive {Ref, V} -> V end.
Is it normal to receive that 'EXIT' messages or am I using eredis badly?
The text was updated successfully, but these errors were encountered: