-
-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
Hello!
During the static analysis was found possible mistake:
- Variable int64(len(h.handlers)), whose possible value set allows a zero value at pool.go:45, is used as a denominator at pool.go:45.
func (h *PoolHandler) Handle(ctx context.Context, r slog.Record) error {
// round robin
rand := h.randSource.Int63() % int64(len(h.handlers))
handlers := append(h.handlers[rand:], h.handlers[:rand]...)
Please clarify whether this requires correction?
Metadata
Metadata
Assignees
Labels
No labels