Added error to return values in some functions

This commit is contained in:
PB
2023-04-02 19:21:54 +02:00
parent 1881298825
commit f7b37a7666
3 changed files with 11 additions and 8 deletions

View File

@@ -21,6 +21,6 @@ func Open(url string) (*amqp.Connection, *amqp.Channel, error) {
return conn, ch, nil
}
func Close(conn *amqp.Connection) {
conn.Close()
func Close(conn *amqp.Connection) error {
return conn.Close()
}