From de0141fe51b7bfd3f58016a485b3b515a71e79a4 Mon Sep 17 00:00:00 2001 From: Rowinson Gallego Date: Tue, 19 Jan 2021 17:39:08 +0100 Subject: [PATCH] Remove check for temporary network errors --- changelog.md | 3 +++ sender.go | 6 ------ version.go | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/changelog.md b/changelog.md index 85a3677..b1c4e2a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Change Log +## `v3.3.5` +- Remove the check for temporary network errors in sender.go [#80](https://github.com/Azure/azure-event-hubs-go/issues/80) + ## `v3.3.4` - read AZURE_ENVIRONMENT variable from environment to use the specified value when creating NewHub diff --git a/sender.go b/sender.go index 07cd4ad..9eb57c1 100644 --- a/sender.go +++ b/sender.go @@ -191,12 +191,6 @@ func (s *sender) trySend(ctx context.Context, evt eventer) error { } switch err.(type) { case *amqp.Error, *amqp.DetachError, net.Error: - if netErr, ok := err.(net.Error); ok { - if !netErr.Temporary() { - return netErr - } - } - recvr(err) default: if !isRecoverableCloseError(err) { diff --git a/version.go b/version.go index c63f389..ea11ad4 100644 --- a/version.go +++ b/version.go @@ -2,5 +2,5 @@ package eventhub const ( // Version is the semantic version number - Version = "3.3.4" + Version = "3.3.5" )