Update default wake timeout to 30 seconds, fixed port selection, improved idlewatcher

This commit is contained in:
yusing
2024-09-25 05:27:12 +08:00
parent dc3575c8fd
commit d10d0e49fa
14 changed files with 103 additions and 70 deletions

View File

@@ -8,8 +8,8 @@ import (
type Port int
func ValidatePort(v string) (Port, E.NestedError) {
p, err := strconv.Atoi(v)
func ValidatePort[String ~string](v String) (Port, E.NestedError) {
p, err := strconv.Atoi(string(v))
if err != nil {
return ErrPort, E.Invalid("port number", v).With(err)
}