Skip to content

Commit ac27ac3

Browse files
committed
Merge pull request #1 from jblackman/master
WaitGroup is now returned as a pointer
2 parents f70f574 + 495ecfa commit ac27ac3

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
@@ -75,7 +75,7 @@ func (conn *CLAMDConn) sendChunk(data []byte) error {
7575
return err
7676
}
7777

78-
func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) {
78+
func (c *CLAMDConn) readResponse() (chan string, *sync.WaitGroup, error) {
7979
var wg sync.WaitGroup
8080

8181
wg.Add(1)
@@ -109,7 +109,7 @@ func (c *CLAMDConn) readResponse() (chan string, sync.WaitGroup, error) {
109109
}
110110
}()
111111

112-
return ch, wg, nil
112+
return ch, &wg, nil
113113
}
114114

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

0 commit comments

Comments
 (0)