2
0

Merge pull request #576 from sigmavirus24/fix-waitfornotificatio-docs

Correct WaitForNotification example
This commit is contained in:
Jack Christensen
2019-08-11 12:13:36 -05:00
committed by GitHub
+1 -1
View File
@@ -225,7 +225,7 @@ notification.
return nil
}
if notification, err := conn.WaitForNotification(time.Second); err != nil {
if notification, err := conn.WaitForNotification(context.TODO()); err != nil {
// do something with notification
}