Skip to content

Commit

Permalink
PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-congo committed Feb 22, 2024
1 parent 0fab94a commit 7eb12fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions go/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions go/api/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7eb12fd

Please sign in to comment.