v0.1.10 internal package rename, minor fixes and refactoring

This commit is contained in:
2025-07-08 16:58:48 -04:00
parent 44d9921e80
commit bc4ce1d0ae
16 changed files with 209 additions and 159 deletions

View File

@ -11,7 +11,7 @@ import (
"logwisp/src/internal/config"
)
// Manages rate limiting for a stream
// Manages rate limiting for a transport
type Limiter struct {
config config.RateLimitConfig
@ -19,7 +19,7 @@ type Limiter struct {
ipLimiters map[string]*ipLimiter
ipMu sync.RWMutex
// Global limiter for the stream
// Global limiter for the transport
globalLimiter *TokenBucket
// Connection tracking