feat: remove checkServiceHealth

This commit is contained in:
AndrewZuo01 2024-01-17 15:09:23 +08:00
parent d96d5ecbc1
commit 7291a10564

View File

@ -8,8 +8,6 @@ import (
config2 "github.com/openimsdk/open-im-server/v3/pkg/common/config"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
"net"
"time"
)
type ServiceAddresses map[string][]int
@ -154,11 +152,3 @@ func (cd *ConnDirect) dialServiceWithoutResolver(ctx context.Context, address st
}
return conn, nil
}
func checkServiceHealth(address string) bool {
conn, err := net.DialTimeout("tcp", address, time.Second*3)
if err != nil {
return false
}
conn.Close()
return true
}