Skip to content

Commit

Permalink
Fix typo. Provide ctx to the function call instead of context.Backgro…
Browse files Browse the repository at this point in the history
…und()
  • Loading branch information
bitomaxsp committed May 22, 2023
1 parent 6fd3deb commit 33fe50a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (n *Node) String() string {
// Note: Starting with v0.5 this method will require a context
// and the corresponding XXXWithContext(ctx) method will be removed.
func (n *Node) NodeClass(ctx context.Context) (ua.NodeClass, error) {
return n.NodeClassWithContext(context.Background())
return n.NodeClassWithContext(ctx)
}

// Note: Starting with v0.5 this method is superseded by the non 'WithContext' method.
Expand Down

0 comments on commit 33fe50a

Please sign in to comment.