fix: remove unused files

This commit is contained in:
lilong.129
2025-03-03 20:54:36 +08:00
parent af5d2eea86
commit d1af4cfe61
7 changed files with 11 additions and 15 deletions
+1 -2
View File
@@ -356,7 +356,6 @@ func ConvertToStringSlice(val interface{}) ([]string, error) {
func GetFreePort() (int, error) {
minPort := 20000
maxPort := 50000
rand.Seed(time.Now().UnixNano())
for i := 0; i < 10; i++ {
port := rand.Intn(maxPort-minPort+1) + minPort
addr := fmt.Sprintf("0.0.0.0:%d", port)
@@ -366,7 +365,7 @@ func GetFreePort() (int, error) {
return port, nil
}
}
return 0, errors.New("failed to find available port in range")
return 0, errors.New("failed to get available port")
}
func GetCurrentDay() string {