mirror of
https://github.com/goharbor/harbor
synced 2025-05-19 19:13:28 +00: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…
x
Reference in New Issue
Block a user