Hello all, Im facing a rather strange issue when trying to call channel.Confirm(true), it hangs forever. Tho what is interesting, and please note that Im no GoLang expert user, is that while debugging I tried adding default case to the *Channel.call method as my debugger was acting out, to my surprise after I added empty default it didn't hang anymore. Please advise.
updates on channel.go on github.com/rabbitmq/amqp091-go v1.8.1
diff channel.go channel-default -U 5
--- channel.go 2023-05-30 14:08:08
+++ channel-default 2023-05-30 14:07:53
@@ -197,12 +197,10 @@
}
// RPC channel has been closed without an error, likely due to a hard
// error on the Connection. This indicates we have already been
// shutdown and if were waiting, will have returned from the errors chan.
return ErrClosed
- default:
-
}
}
return nil
}
Hello all, Im facing a rather strange issue when trying to call
channel.Confirm(true)
, it hangs forever. Tho what is interesting, and please note that Im no GoLang expert user, is that while debugging I tried addingdefault
case to the*Channel.call
method as my debugger was acting out, to my surprise after I added emptydefault
it didn't hang anymore. Please advise.rabbitmq ran on docker using official image
reproducible code:
updates on
channel.go
ongithub.com/rabbitmq/amqp091-go v1.8.1