From 495ecfa2d80a43d600be9e0df6473727d8d84190 Mon Sep 17 00:00:00 2001 From: Joe Blackman Date: Wed, 22 Jul 2015 09:51:37 +0200 Subject: [PATCH] WaitGroup is now returned as a pointer --- conn.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conn.go b/conn.go index df83253..ef4c9fb 100644 --- a/conn.go +++ b/conn.go @@ -73,7 +73,7 @@ func (conn *CLAMDConn) sendChunk(data []byte) error { return err } -func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) { +func (c *CLAMDConn) readResponse() (chan string, *sync.WaitGroup, error) { var wg sync.WaitGroup wg.Add(1) @@ -107,7 +107,7 @@ func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) { } }() - return ch, wg, nil + return ch, &wg, nil } func newCLAMDTcpConn(address string) (*CLAMDConn, error) {