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

Correct WaitForNotification example
pull/579/head
Jack Christensen 2019-08-11 12:13:36 -05:00 committed by GitHub
commit 719800394d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
doc.go
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
}