mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-25 18:04:58 +01:00
set channel buffer to prevent leaking goroutine
This commit is contained in:
parent
13dc63bd23
commit
4ec5e23457
@ -140,7 +140,7 @@ func (j *SourceJob) serve(ctx context.Context) {
|
||||
conn net.Conn
|
||||
err error
|
||||
}
|
||||
connChan := make(chan connChanMsg)
|
||||
connChan := make(chan connChanMsg, 1)
|
||||
|
||||
// Serve connections until interrupted or error
|
||||
outer:
|
||||
|
Loading…
Reference in New Issue
Block a user