mirror of
https://github.com/goharbor/harbor.git
synced 2024-06-30 16:55:07 +02:00
Merge pull request #13382 from flaviodsr/fix_core_init
Fix deadlock on harbor-core initialization
This commit is contained in:
commit
fef5317aef
|
@ -89,8 +89,8 @@ func GenerateRandomString() string {
|
|||
// with the connection, in second
|
||||
// interval: the interval time for retring after failure, in second
|
||||
func TestTCPConn(addr string, timeout, interval int) error {
|
||||
success := make(chan int)
|
||||
cancel := make(chan int)
|
||||
success := make(chan int, 1)
|
||||
cancel := make(chan int, 1)
|
||||
|
||||
go func() {
|
||||
n := 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user