mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-23 00:46:23 +01:00
5b7e8d1309
* lib/backup/s3remote: update AWS SDK to v2 * Update lib/backup/s3remote/s3.go Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com> * lib/backup/s3remote: refactor error handling Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
23 lines
321 B
Go
23 lines
321 B
Go
package aws
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type suppressedContext struct {
|
|
context.Context
|
|
}
|
|
|
|
func (s *suppressedContext) Deadline() (deadline time.Time, ok bool) {
|
|
return time.Time{}, false
|
|
}
|
|
|
|
func (s *suppressedContext) Done() <-chan struct{} {
|
|
return nil
|
|
}
|
|
|
|
func (s *suppressedContext) Err() error {
|
|
return nil
|
|
}
|