basho/riak-erlang-client — pull request #44 by fernandezvieira (2012-03-23 14:18:00+00:00)
Title: Fixed default_timeout

Was running a test using mapred_bucket_stream, manually setting mapred_bucket_stream_call_timeout, rather than using the default timeout, and it was failing.

After looking at the code, within the default_timeout function, I realized that the atom 'mapred_bucket_stream_call_timeout' was being passed in as a parameter and associated with variable OpTimeout - the same variable name was used to store the value returned from the application:get_env function.

The function was therefore returning the atom, and not the numbered value returned from application:get_env.

I've changed the name of the variable for the value returned from application:get_env, and returned this instead.