1
0
mirror of https://github.com/eventials/goevents.git synced 2025-04-24 13:48:53 +08:00

Removed wrapped error

This commit is contained in:
Germano Fronza 2017-03-09 22:22:46 -03:00
parent a5e5fc4ec3
commit 792e8ef531

View File

@ -1,7 +1,6 @@
package amqp
import (
"errors"
"sync"
"time"
@ -61,9 +60,7 @@ func (c *Connection) NotifyConnectionClose() <-chan error {
ch := make(chan error)
go func() {
se := <-c.connection.NotifyClose(make(chan *amqplib.Error))
ch <- errors.New(se.Error())
ch <- <-c.connection.NotifyClose(make(chan *amqplib.Error))
}()
return ch