Skip to content

Commit c65e892

Browse files
authored
ContainerService: Remove lock from list() (#537)
1 parent 23c5262 commit c65e892

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/APIServer/Containers/ContainersService.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ actor ContainersService {
8484
/// List all containers registered with the service.
8585
public func list() async throws -> [ContainerSnapshot] {
8686
self.log.debug("\(#function)")
87-
return await lock.withLock { context in
88-
Array(await self.containers.values)
89-
}
87+
return Array(self.containers.values)
9088
}
9189

9290
/// Execute an operation with the current container list while maintaining atomicity

0 commit comments

Comments
 (0)