WithCheckInterval sets how often the agent runs connectivity checks while connecting.
(interval time.Duration)
| 643 | |
| 644 | // WithCheckInterval sets how often the agent runs connectivity checks while connecting. |
| 645 | func WithCheckInterval(interval time.Duration) AgentOption { |
| 646 | return func(a *Agent) error { |
| 647 | if a.constructed { |
| 648 | return ErrAgentOptionNotUpdatable |
| 649 | } |
| 650 | |
| 651 | a.checkInterval = interval |
| 652 | |
| 653 | return nil |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | // WithRenomination enables ICE renomination as described in draft-thatcher-ice-renomination-01. |
| 658 | // When enabled, the controlling agent can renominate candidate pairs multiple times |
no outgoing calls
searching dependent graphs…