1
0
mirror of https://github.com/eventials/goevents.git synced 2025-04-29 13:49:26 +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 package amqp
import ( import (
"errors"
"sync" "sync"
"time" "time"
@ -61,9 +60,7 @@ func (c *Connection) NotifyConnectionClose() <-chan error {
ch := make(chan error) ch := make(chan error)
go func() { go func() {
se := <-c.connection.NotifyClose(make(chan *amqplib.Error)) ch <- <-c.connection.NotifyClose(make(chan *amqplib.Error))
ch <- errors.New(se.Error())
}() }()
return ch return ch