Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Dec 5, 2024
1 parent 5194af7 commit e0f5d85
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ func GetEndpoints(ctx context.Context, endpoint string, opts ...Option) ([]*ua.E
// SelectEndpoint returns the endpoint with the highest security level which matches
// security policy and security mode. policy and mode can be omitted so that
// only one of them has to match.
// todo(fs): should this function return an error?
func SelectEndpoint(endpoints []*ua.EndpointDescription, policy string, mode ua.MessageSecurityMode) (*ua.EndpointDescription, error) {
if len(endpoints) == 0 {
return nil, errors.Errorf("no endpoints available")
Expand Down

0 comments on commit e0f5d85

Please sign in to comment.