From 1beaf100fee44d57b17d5265349fd4defc59ddef Mon Sep 17 00:00:00 2001 From: Seb3thehacker <88462253+Seb3thehacker@users.noreply.github.com> Date: Thu, 24 Mar 2022 08:22:01 +0000 Subject: [PATCH] Update s3.go --- backends/s3/s3.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backends/s3/s3.go b/backends/s3/s3.go index b48837f..17f6725 100644 --- a/backends/s3/s3.go +++ b/backends/s3/s3.go @@ -167,6 +167,11 @@ func (b S3Backend) Unlock(filename string) (err error) { return } +func (b S3Backend) CheckLock(filename string) (locked bool, err error) { + log.Printf("Locking is not supported on S3") + return +} + func (b S3Backend) Put(key string, r io.Reader, expiry time.Time, deleteKey, accessKey string, srcIp string) (m backends.Metadata, err error) { tmpDst, err := ioutil.TempFile("", "linx-server-upload") if err != nil {