mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 14:22:13 +00:00
Add documentation for RoutingTableLatencyTolerance.
This commit is contained in:
parent
04a53d2886
commit
766aeee9ed
@ -71,6 +71,8 @@ var Defaults = func(o *Options) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// RoutingTableLatencyTolerance sets the maximum acceptable latency for peers
|
||||
// in the routing table's cluster.
|
||||
func RoutingTableLatencyTolerance(latency time.Duration) Option {
|
||||
return func(o *Options) error {
|
||||
o.RoutingTable.LatencyTolerance = latency
|
||||
|
Loading…
x
Reference in New Issue
Block a user