Skip to content

Commit

Permalink
examples: use SubscribeWithContext
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed May 24, 2022
1 parent 4e46cdb commit bd9ff12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/subscribe/subscribe.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func main() {

notifyCh := make(chan *opcua.PublishNotificationData)

sub, err := c.Subscribe(&opcua.SubscriptionParameters{
sub, err := c.SubscribeWithContext(ctx, &opcua.SubscriptionParameters{
Interval: *interval,
}, notifyCh)
if err != nil {
Expand Down

0 comments on commit bd9ff12

Please sign in to comment.