mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-29 03:45:27 +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
|
conn net.Conn
|
||||||
err error
|
err error
|
||||||
}
|
}
|
||||||
connChan := make(chan connChanMsg)
|
connChan := make(chan connChanMsg, 1)
|
||||||
|
|
||||||
// Serve connections until interrupted or error
|
// Serve connections until interrupted or error
|
||||||
outer:
|
outer:
|
||||||
|
Loading…
Reference in New Issue
Block a user