Skip to content

Commit

Permalink
Merge pull request #388 from gopcua/view-no-timestamp
Browse files Browse the repository at this point in the history
browse: do not set timestamp for empty view
  • Loading branch information
magiconair authored Oct 2, 2020
2 parents 2999796 + 760b029 commit 5a27f25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions node.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package opcua

import (
"strings"
"time"

"github.com/gopcua/opcua/id"
"github.com/gopcua/opcua/ua"
Expand Down Expand Up @@ -184,8 +183,7 @@ func (n *Node) References(refType uint32, dir ua.BrowseDirection, mask ua.NodeCl

req := &ua.BrowseRequest{
View: &ua.ViewDescription{
ViewID: ua.NewTwoByteNodeID(0),
Timestamp: time.Now(),
ViewID: ua.NewTwoByteNodeID(0),
},
RequestedMaxReferencesPerNode: 0,
NodesToBrowse: []*ua.BrowseDescription{desc},
Expand Down

0 comments on commit 5a27f25

Please sign in to comment.