Fix: a jedis client returning destination
A client has to be returned to the broken client pool, when an exception occurred.
thanks for this, however, it's not really idiomatic in scala to use a var like this or null.instanceOf
could you please modify it using
http://danielwestheide.com/blog/2012/12/26/the-neophytes-guide-to-scala-part-6-error-handling-with-try.html
?
if not, I will fix it.
Thanks
I tried to fix using the way of error handling that you pointed out. If this fix is inappropriateness, I'm sorry to bother you, but could you please fix this issue yourself?
removed duplicate code on @tkawachi 's suggestion, and rebased. (I'm sorry. Target-lines that comment points was disappeared.)