Skip to content

Commit 495ecfa

Browse files
author
Joe Blackman
committed
WaitGroup is now returned as a pointer
1 parent 1bb7549 commit 495ecfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (conn *CLAMDConn) sendChunk(data []byte) error {
7373
return err
7474
}
7575

76-
func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) {
76+
func (c *CLAMDConn) readResponse() (chan string, *sync.WaitGroup, error) {
7777
var wg sync.WaitGroup
7878

7979
wg.Add(1)
@@ -107,7 +107,7 @@ func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) {
107107
}
108108
}()
109109

110-
return ch, wg, nil
110+
return ch, &wg, nil
111111
}
112112

113113
func newCLAMDTcpConn(address string) (*CLAMDConn, error) {

0 commit comments

Comments
 (0)