Merge pull request #576 from sigmavirus24/fix-waitfornotificatio-docs
Correct WaitForNotification example
This commit is contained in:
@@ -225,7 +225,7 @@ notification.
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if notification, err := conn.WaitForNotification(time.Second); err != nil {
|
if notification, err := conn.WaitForNotification(context.TODO()); err != nil {
|
||||||
// do something with notification
|
// do something with notification
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user