fixed loadbalancer with idlewatcher, fixed reload issue

This commit is contained in:
yusing
2024-10-20 09:46:02 +08:00
parent 01ffe0d97c
commit a278711421
78 changed files with 906 additions and 609 deletions

View File

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