mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-19 06:21:41 -04:00
Switch bool chan to struct chan for less memory usage
This commit is contained in:
@@ -139,10 +139,10 @@ func (c *communicator) Download(path string, w io.Writer) (err error) {
|
||||
// Serve a single connection and a single copy
|
||||
streamId := c.mux.NextId()
|
||||
|
||||
waitServer := make(chan bool)
|
||||
waitServer := make(chan struct{})
|
||||
go func() {
|
||||
serveSingleCopy("downloadWriter", c.mux, streamId, w, nil)
|
||||
waitServer <- true
|
||||
close(waitServer)
|
||||
}()
|
||||
|
||||
args := CommunicatorDownloadArgs{
|
||||
|
||||
Reference in New Issue
Block a user