Skip to content

Commit

Permalink
bump send timeout to 30s (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
serbrech authored Sep 2, 2023
1 parent 8d28588 commit c1e0887
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v2/sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import (
"time"

"github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus"

"github.com/Azure/go-shuttle/v2/metrics/sender"
)

const (
msgTypeField = "type"
defaultSendTimeout = 10 * time.Second
defaultSendTimeout = 30 * time.Second
)

// MessageBody is a type to represent that an input message body can be of any type
Expand All @@ -38,7 +39,7 @@ type SenderOptions struct {
// EnableTracingPropagation automatically applies WithTracePropagation option on all message sent through this sender
EnableTracingPropagation bool
// SendTimeout is the timeout value used on the context that sends messages
// Defaults to 10 seconds if not set or 0
// Defaults to 30 seconds if not set or 0
// Disabled when set to a negative value
SendTimeout time.Duration
}
Expand Down

0 comments on commit c1e0887

Please sign in to comment.