Add documentation for RoutingTableLatencyTolerance.

This commit is contained in:
Vibhav Pant 2020-02-18 15:21:46 +05:30
parent 04a53d2886
commit 766aeee9ed
No known key found for this signature in database
GPG Key ID: BA939833A10FCBAA

View File

@ -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