This PR introduces the ability to specify a custom timeout for the requestToRust function within the rinf. The default timeout has been preserved, but users can now optionally set a different duration if needed.
Key changes:
Added an optional parameter timeout to the requestToRust function signature with a default value of 60 seconds.
Utilized the new timeout parameter within the await future.timeout() call to apply the custom or default timeout value.
This enhancement allows for more flexible network timeout management in environments where the fixed timeout may be insufficient or overly conservative.
Please review the changes and let me know if there are any further adjustments I should make.
Changes
This PR introduces the ability to specify a custom timeout for the requestToRust function within the rinf. The default timeout has been preserved, but users can now optionally set a different duration if needed.
Key changes:
This enhancement allows for more flexible network timeout management in environments where the fixed timeout may be insufficient or overly conservative.
Please review the changes and let me know if there are any further adjustments I should make.