The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2265
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === We don't use the Close method any more, so let's make these Writers, not WriteClosers. Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 682d9fba03a7967b6c3048de93530f9d766699a9 Mon Sep 17 00:00:00 2001 From: Tycho Andersen <tycho.ander...@canonical.com> Date: Thu, 4 Aug 2016 21:58:53 +0000 Subject: [PATCH] relax constraints on WebsocketRecvStream args We don't use the Close method any more, so let's make these Writers, not WriteClosers. Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com> --- shared/network.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/network.go b/shared/network.go index 7032348..8689880 100644 --- a/shared/network.go +++ b/shared/network.go @@ -180,10 +180,10 @@ func WebsocketSendStream(conn *websocket.Conn, r io.Reader, bufferSize int) chan return ch } -func WebsocketRecvStream(w io.WriteCloser, conn *websocket.Conn) chan bool { +func WebsocketRecvStream(w io.Writer, conn *websocket.Conn) chan bool { ch := make(chan bool) - go func(w io.WriteCloser, conn *websocket.Conn) { + go func(w io.Writer, conn *websocket.Conn) { for { mt, r, err := conn.NextReader() if mt == websocket.CloseMessage {
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel