Make sure user-supplied timeout takes precedence

This commit is contained in:
cloudhead 2024-03-25 14:03:08 +01:00
parent f7737b73c9
commit 7b1847d8ad
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1090,7 +1090,7 @@ impl Handle for Node {
nid: from, nid: from,
timeout, timeout,
}, },
DEFAULT_TIMEOUT, DEFAULT_TIMEOUT.max(timeout),
)? )?
.next() .next()
.ok_or(Error::EmptyResponse)??; .ok_or(Error::EmptyResponse)??;