Skip to content

Commit

Permalink
closed the connection (#14233)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetbutgul authored May 14, 2024
1 parent 47bd96b commit deb0a45
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ class S3ResourceDownloader(
val needToRefresh =
lastMetadataState.isEmpty || lastMetadataState.get.lastModified.before(lastModifiedTimeInS3)
if (!needToRefresh) {
metadataObject.close()
lastMetadataState.get.metadata
} else {
val metadata = ResourceMetadata.readResources(metadataObject.getObjectContent)
metadataObject.close()
repoFolder2Metadata(folder) = RepositoryMetadata(
folder,
lastModifiedTimeInS3,
Expand Down

0 comments on commit deb0a45

Please # to comment.