Skip to content

Commit

Permalink
Made Drain only take ReceivingStream
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed May 27, 2016
1 parent 8d79ccd commit 38ee082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Drain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class Drain: DataRepresentable, Stream {
self.init(for: [])
}

public init(for stream: Stream, timingOut deadline: Double = .never) {
public init(for stream: ReceivingStream, timingOut deadline: Double = .never) {
var buffer: Data = []

if stream.closed {
Expand Down

0 comments on commit 38ee082

Please # to comment.