Remove Conn.Listen and Conn.Unlisten
Use Conn.Exec instead to listen or unlisten.
This commit is contained in:
@@ -60,7 +60,7 @@ func listen() {
|
||||
}
|
||||
defer pool.Release(conn)
|
||||
|
||||
conn.Listen("chat")
|
||||
conn.Exec(context.Background(), "listen chat")
|
||||
|
||||
for {
|
||||
notification, err := conn.WaitForNotification(context.Background())
|
||||
|
||||
Reference in New Issue
Block a user