perf: use fasthttp for health checks; upgrade go to 1.25.3

This commit is contained in:
yusing
2025-10-17 22:50:13 +08:00
parent 3e73be60a1
commit 5a91db8d10
12 changed files with 172 additions and 144 deletions

View File

@@ -2,7 +2,6 @@ package monitor
import (
"context"
"errors"
"fmt"
"math/rand"
"net/url"
@@ -110,7 +109,7 @@ func (mon *monitor) ContextWithTimeout(cause string) (ctx context.Context, cance
default:
ctx = context.Background()
}
return context.WithTimeoutCause(ctx, mon.config.Timeout, errors.New(cause))
return context.WithTimeoutCause(ctx, mon.config.Timeout, gperr.New(cause))
}
// Start implements task.TaskStarter.