refactor(telemost): rename send delay constant for clarity

This commit is contained in:
zarazaex69
2026-04-13 00:41:25 +03:00
parent 17e8e52e43
commit 2a55723a1e

View File

@@ -23,7 +23,7 @@ import (
const (
realDataChannelMessageLimit = 8192
defaultSendDelayMin = 2 * time.Millisecond
defaultSendDelayLow = 2 * time.Millisecond
defaultSendDelayMax = 12 * time.Millisecond
defaultTelemetryInterval = 20 * time.Second
)
@@ -126,7 +126,7 @@ func NewPeer(ctx context.Context, roomURL, name string, onData func([]byte)) (*P
ackWaiters: make(map[string]chan struct{}),
trafficShape: TrafficShape{
MaxMessageSize: realDataChannelMessageLimit,
MinDelay: defaultSendDelayMin,
MinDelay: defaultSendDelayLow,
MaxDelay: defaultSendDelayMax,
},
}, nil