We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61e802d commit 4231ad5Copy full SHA for 4231ad5
Sources/EventSource/EventSource.swift
@@ -50,9 +50,7 @@ public struct EventSource: Sendable {
50
public var timeoutInterval: TimeInterval
51
52
public init(mode: Mode = .default, timeoutInterval: TimeInterval = 300) {
53
- self.mode = mode
54
- self.eventParser = { ServerEventParser(mode: mode) }
55
- self.timeoutInterval = timeoutInterval
+ self.init(mode: mode, eventParser: ServerEventParser(mode: mode), timeoutInterval: timeoutInterval)
56
}
57
58
public init(
0 commit comments