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