Skip to content

Commit

Permalink
Increase Azure Service-Bus API timeout to 5 secs.
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Sep 20, 2021
1 parent efb3284 commit 15a51a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/integration/azureservicebus/azure_service_bus.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (i *Integration) publishHTTP(ctx context.Context, event string, application
return errors.Wrap(err, "create sas token error")
}

ctxCancel, cancel := context.WithTimeout(ctx, time.Second)
ctxCancel, cancel := context.WithTimeout(ctx, time.Second*5)
defer cancel()

req, err := http.NewRequestWithContext(ctxCancel, "POST", i.uri+"/messages", bytes.NewReader(b))
Expand Down

0 comments on commit 15a51a0

Please sign in to comment.