Small naming fixes
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
This commit is contained in:
parent
64cd81e372
commit
fc00023206
|
@ -96,9 +96,9 @@ func (a *azureServiceBus) Publish(ctx context.Context, req *pubsub.PublishReques
|
|||
}
|
||||
|
||||
// Try sending the message
|
||||
parentCtx, cancel := context.WithTimeout(ctx, time.Second*time.Duration(a.metadata.TimeoutInSec))
|
||||
defer cancel()
|
||||
err = sender.SendMessage(parentCtx, msg, nil)
|
||||
publishCtx, publisCancel := context.WithTimeout(ctx, time.Second*time.Duration(a.metadata.TimeoutInSec))
|
||||
err = sender.SendMessage(publishCtx, msg, nil)
|
||||
publisCancel()
|
||||
if err != nil {
|
||||
if impl.IsNetworkError(err) {
|
||||
// Retry after reconnecting
|
||||
|
|
|
@ -95,9 +95,9 @@ func (a *azureServiceBus) Publish(ctx context.Context, req *pubsub.PublishReques
|
|||
}
|
||||
|
||||
// Try sending the message
|
||||
parentCtx, cancel := context.WithTimeout(ctx, time.Second*time.Duration(a.metadata.TimeoutInSec))
|
||||
defer cancel()
|
||||
err = sender.SendMessage(parentCtx, msg, nil)
|
||||
publishCtx, publishCancel := context.WithTimeout(ctx, time.Second*time.Duration(a.metadata.TimeoutInSec))
|
||||
err = sender.SendMessage(publishCtx, msg, nil)
|
||||
publishCancel()
|
||||
if err != nil {
|
||||
if impl.IsNetworkError(err) {
|
||||
// Retry after reconnecting
|
||||
|
|
Loading…
Reference in New Issue