2
0

Remove Conn.Listen and Conn.Unlisten

Use Conn.Exec instead to listen or unlisten.
This commit is contained in:
Jack Christensen
2019-04-10 11:21:40 -05:00
parent 77a2da2b46
commit b69179cebb
4 changed files with 6 additions and 31 deletions
+1 -1
View File
@@ -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())