From 766aeee9ed3a5d04534b5ee5f89568a4193633bd Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Tue, 18 Feb 2020 15:21:46 +0530 Subject: [PATCH] Add documentation for RoutingTableLatencyTolerance. --- opts/options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opts/options.go b/opts/options.go index 3ba7c7c..7d2eb61 100644 --- a/opts/options.go +++ b/opts/options.go @@ -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