From 7eb12fde0a787b9c3840742e6b314e5a6e66b526 Mon Sep 17 00:00:00 2001 From: aaron-congo Date: Thu, 22 Feb 2024 13:58:36 -0800 Subject: [PATCH] PR suggestions --- go/DEVELOPER.md | 1 + go/api/config.go | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/go/DEVELOPER.md b/go/DEVELOPER.md index 9b6601e8f8..f2050aca1b 100644 --- a/go/DEVELOPER.md +++ b/go/DEVELOPER.md @@ -164,6 +164,7 @@ Development on the Go wrapper may involve changes in either the Go or Rust code. **Go:** +- go vet - gofumpt - staticcheck - golines diff --git a/go/api/config.go b/go/api/config.go index 7f9e19197f..70bda66d88 100644 --- a/go/api/config.go +++ b/go/api/config.go @@ -111,8 +111,11 @@ func mapReadFrom(readFrom ReadFrom) protobuf.ReadFrom { } // BackoffStrategy represents the strategy used to determine how and when to reconnect, in case of connection failures. The -// time between attempts grows exponentially, to the formula rand(0 ... factor * (exponentBase ^ N)), where N is the number of -// failed attempts. +// time between attempts grows exponentially, to the formula: +// +// rand(0 ... factor * (exponentBase ^ N)) +// +// where N is the number of failed attempts. // // Once the maximum value is reached, that will remain the time between retry attempts until a reconnect attempt is successful. // The client will attempt to reconnect indefinitely.