Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Antanukas committed Oct 6, 2021
1 parent 79e89eb commit 2300ea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/msg/producer/writer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const (
// to lower values like 1k ~ 8k.
defaultConnectionBufferSize = 2 << 15 // ~65kb

defaultRetryInitialBackoff = time.Second * 5
defaultWriterRetryInitialBackoff = time.Second * 5
)

// ConnectionOptions configs the connections.
Expand Down Expand Up @@ -400,7 +400,7 @@ type writerOptions struct {
// NewOptions creates Options.
func NewOptions() Options {
messageRetryOpts := retry.NewOptions().
SetInitialBackoff(defaultRetryInitialBackoff)
SetInitialBackoff(defaultWriterRetryInitialBackoff)
return &writerOptions{
topicWatchInitTimeout: defaultTopicWatchInitTimeout,
placementOpts: placement.NewOptions(),
Expand Down
2 changes: 1 addition & 1 deletion src/msg/producer/writer/options_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func TestOptions(t *testing.T) {
require.Nil(t, opts.SetInstrumentOptions(nil).InstrumentOptions())

require.NotNil(t, opts.MessageRetryOptions())
require.Equal(t, defaultRetryInitialBackoff, opts.MessageRetryOptions().InitialBackoff())
require.Equal(t, defaultWriterRetryInitialBackoff, opts.MessageRetryOptions().InitialBackoff())
}

func TestConnectionOptions(t *testing.T) {
Expand Down

0 comments on commit 2300ea9

Please sign in to comment.