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:
parent
a5e5fc4ec3
commit
792e8ef531
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user