Merge pull request #203 from rwngallego/master
Remove check for temporary network errors
This commit is contained in:
Коммит
f421926556
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -2,5 +2,5 @@ package eventhub
|
|||
|
||||
const (
|
||||
// Version is the semantic version number
|
||||
Version = "3.3.4"
|
||||
Version = "3.3.5"
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче