Skip to content

Commit

Permalink
Spring cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
mergesort committed Oct 20, 2023
1 parent 4e3cf94 commit 342790d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Sources/Bodega/DiskStorageEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public actor DiskStorageEngine: StorageEngine {
return zip(
keys,
await self.read(keys: keys)
).map { ($0, $1) }
)
.map({ ($0, $1) })
}

/// Reads all the `[Data]` located in the `directory`.
Expand Down
3 changes: 2 additions & 1 deletion Sources/Bodega/ObjectStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ public actor ObjectStorage<Object: Codable> {
return zip(
keys,
await self.objects(forKeys: keys)
).map { ($0, $1) }
)
.map({ ($0, $1) })
}

/// Reads all `[Object]` objects.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Bodega/StorageEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ extension StorageEngine {
public func keysExist(_ keys: [CacheKey]) async -> [CacheKey] {
let allKeys = await self.allKeys()
let keySet = Set(allKeys)
return keys.filter { keySet.contains($0) }
return keys.filter({ keySet.contains($0) })
}

/// Read the number of keys located in the ``StorageEngine``.
Expand Down

0 comments on commit 342790d

Please sign in to comment.