mirror of
https://github.com/netbirdio/ice.git
synced 2026-05-22 17:10:58 -07:00
Remove CandidateSelectionTimeout
The code that uses this field was removed in
e264665676 but the field
wasn't properly removed from the public API.
This commit is contained in:
@@ -58,11 +58,10 @@ type Agent struct {
|
||||
|
||||
maxBindingRequests uint16
|
||||
|
||||
candidateSelectionTimeout time.Duration
|
||||
hostAcceptanceMinWait time.Duration
|
||||
srflxAcceptanceMinWait time.Duration
|
||||
prflxAcceptanceMinWait time.Duration
|
||||
relayAcceptanceMinWait time.Duration
|
||||
hostAcceptanceMinWait time.Duration
|
||||
srflxAcceptanceMinWait time.Duration
|
||||
prflxAcceptanceMinWait time.Duration
|
||||
relayAcceptanceMinWait time.Duration
|
||||
|
||||
portmin uint16
|
||||
portmax uint16
|
||||
|
||||
@@ -20,9 +20,6 @@ const (
|
||||
// defaultFailedTimeout is the default time till an Agent transitions to failed after disconnected
|
||||
defaultFailedTimeout = 25 * time.Second
|
||||
|
||||
// timeout for candidate selection, after this time, the best candidate is used
|
||||
defaultCandidateSelectionTimeout = 10 * time.Second
|
||||
|
||||
// wait time before nominating a host candidate
|
||||
defaultHostAcceptanceMinWait = 0
|
||||
|
||||
@@ -104,11 +101,6 @@ type AgentConfig struct {
|
||||
// the candidate is yet to answer a binding request or a nomination we set the pair as failed
|
||||
MaxBindingRequests *uint16
|
||||
|
||||
// CandidatesSelectionTimeout specify a timeout for selecting candidates, if no nomination has happen
|
||||
// before this timeout, once hit we will nominate the best valid candidate available,
|
||||
// or mark the connection as failed if no valid candidate is available
|
||||
CandidateSelectionTimeout *time.Duration
|
||||
|
||||
// Lite agents do not perform connectivity check and only provide host candidates.
|
||||
Lite bool
|
||||
|
||||
@@ -156,12 +148,6 @@ func (config *AgentConfig) initWithDefaults(a *Agent) {
|
||||
a.maxBindingRequests = *config.MaxBindingRequests
|
||||
}
|
||||
|
||||
if config.CandidateSelectionTimeout == nil {
|
||||
a.candidateSelectionTimeout = defaultCandidateSelectionTimeout
|
||||
} else {
|
||||
a.candidateSelectionTimeout = *config.CandidateSelectionTimeout
|
||||
}
|
||||
|
||||
if config.HostAcceptanceMinWait == nil {
|
||||
a.hostAcceptanceMinWait = defaultHostAcceptanceMinWait
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user