Remove outdated FIXME comment from Server.swift

This commit is contained in:
Max Desiatov 2020-06-08 22:05:02 +01:00
parent 5604049554
commit 1032f9a8f1
No known key found for this signature in database
GPG Key ID: FE08EBF9CF58CBA2
1 changed files with 1 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import OpenCombine
import TSCBasic
import Vapor
/// This `Hashable` conformance is required to handle simulatenous connections with `Set<WebSocket>`
extension WebSocket: Hashable {
public static func == (lhs: WebSocket, rhs: WebSocket) -> Bool {
lhs === rhs
@ -27,8 +28,6 @@ extension WebSocket: Hashable {
}
final class Server {
// FIXME: this only handles a single connection, should maintain a collection of connections
// and cleanup the array when one is closed
private var connections = Set<WebSocket>()
private var subscriptions = [AnyCancellable]()
private let watcher: Watcher