coldsnap
coldsnap copied to clipboard
Add timeout to remote calls
We've seen a few occasions where coldsnap uploads have blocked forever in a rusoto call. We should add timeouts so the calls can fail, letting the error handling code either retry or inform the user.
tokio::time::timeout can wrap any future with a maximum duration; we can use it to wrap our rusoto calls.