2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00
restic/internal/backend/rclone
greatroar d4aadfa389 all: Drop ctxhttp
This package is no longer needed, since we can use the stdlib's
http.NewRequestWithContext.

backend/rclone already did, but it needed a different error check due to
a difference between net/http and ctxhttp.

Also, store the http.Client by value in the REST backend (changed to a
pointer when ctxhttp was introduced) and use errors.WithStack instead
of errors.Wrap where the message was no longer accurate. Errors from
http.NewRequestWithContext will start with "net/http" or "net/url", so
they're easy to identify.
2022-10-14 14:33:49 +02:00
..
backend_test.go all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
backend.go all: Drop ctxhttp 2022-10-14 14:33:49 +02:00
config_test.go rclone: add timeout option and documentation 2021-11-07 17:49:21 +01:00
config.go rclone: Fix timeout calculation 2021-11-07 17:49:33 +01:00
internal_test.go rclone: return rclone error instead of canceled context 2022-10-08 20:15:24 +02:00
stdio_conn.go rclone: Better field names for stdio conn 2020-07-26 00:29:25 +02:00