Merge pull request #1 from jblackman/master

WaitGroup is now returned as a pointer
This commit is contained in:
Dolf Schimmel
2016-04-03 00:14:34 +02:00

View File

@@ -75,7 +75,7 @@ func (conn *CLAMDConn) sendChunk(data []byte) error {
return err return err
} }
func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) { func (c *CLAMDConn) readResponse() (chan string, *sync.WaitGroup, error) {
var wg sync.WaitGroup var wg sync.WaitGroup
wg.Add(1) wg.Add(1)
@@ -109,7 +109,7 @@ func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) {
} }
}() }()
return ch, wg, nil return ch, &wg, nil
} }
func newCLAMDTcpConn(address string) (*CLAMDConn, error) { func newCLAMDTcpConn(address string) (*CLAMDConn, error) {