fix: отбрасывать опоздавший повтор client id, общий backoff квоты
This commit is contained in:
1 parent
1e3782c546
commit
05bbe996c1
5 files changed
+12
-12
No files matched your search
@@ -21,6 +21,10 @@ import (
|
||||
// аллокаций. Лечится ожиданием, а не сменой реквизитов (см. IsAuthError в vkauth).
|
||||
var ErrAllocQuota = errors.New("turndial: allocation quota reached")
|
||||
|
||||
func QuotaBackoff() time.Duration {
|
||||
return time.Duration(15+randx.Intn(15)) * time.Second
|
||||
}
|
||||
|
||||
// Config задаёт параметры подключения к TURN-серверу.
|
||||
type Config struct {
|
||||
HostOverride string
|
||||
|
||||
Reference in new issue
Block a user