Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Avoid contact attachment replication cache race

Neeraj Guptac8a36437f454
diff --git a/server/pkg/controller/contact/controller.go b/server/pkg/controller/contact/controller.go
index 612280b980..9de1489a50 100644
--- a/server/pkg/controller/contact/controller.go
+++ b/server/pkg/controller/contact/controller.go
@@ -504,7 +504,6 @@ func (c *Controller) replicateAttachmentObject(ctx context.Context, row contactm
if downloader == nil {
s3Client := c.S3Config.GetS3Client(row.LatestBucket)
downloader = s3manager.NewDownloaderWithClient(&s3Client)
- c.downloadManagerCache[row.LatestBucket] = downloader
}
_, err = downloader.DownloadWithContext(ctx, file, &s3.GetObjectInput{
Bucket: c.S3Config.GetBucket(row.LatestBucket),