feat: add rdma support

Signed-off-by: Meinhard Zhou <zhouenhua@bytedance.com>
This commit is contained in:
Meinhard Zhou
2023-11-21 20:43:13 +08:00
parent 998801c53d
commit b002568227
6 changed files with 13 additions and 18 deletions

View File

@@ -32,15 +32,10 @@ import (
func waitForPathToExist(devicePath string, maxRetries, intervalSeconds int, deviceTransport string) (bool, error) {
for i := 0; i < maxRetries; i++ {
if deviceTransport == "tcp" {
exist := utils.IsFileExisting(devicePath)
if exist {
return true, nil
}
} else {
return false, fmt.Errorf("connect only support tcp")
exist := utils.IsFileExisting(devicePath)
if exist {
return true, nil
}
if i == maxRetries-1 {
break
}