Merge pull request #13382 from flaviodsr/fix_core_init

Fix deadlock on harbor-core initialization
This commit is contained in:
Daniel Jiang 2020-12-04 19:51:56 +08:00 committed by GitHub
commit fef5317aef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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