Skip to content

Commit

Permalink
convert azm to use RelationIdentifier
Browse files Browse the repository at this point in the history
  • Loading branch information
gertd committed Dec 10, 2024
1 parent 0c7e2ea commit 9f0be45
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pkg/bdb/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ func unmarshal[T any, M Message[T]](b []byte) (M, error) {
}

func unmarshalTo[T any, M Message[T]](b []byte, dst M) error {
// return dst.UnmarshalVT(b)
return dst.UnmarshalVT(b)
}

Expand Down
1 change: 0 additions & 1 deletion pkg/directory/v3/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ func (s *Reader) Check(ctx context.Context, req *dsr3.CheckRequest) (*dsr3.Check

// Checks, execute multiple check requests in parallel.
func (s *Reader) Checks(ctx context.Context, req *dsr3.ChecksRequest) (*dsr3.ChecksResponse, error) {
// defer profile.Start(profile.TraceProfile, profile.ProfilePath("."), profile.NoShutdownHook).Stop()
resp := &dsr3.ChecksResponse{}

// TODO add ProtoValidate constraints pb-directory and add dsr3.ChecksRequest to protovalidate init func.
Expand Down
1 change: 1 addition & 0 deletions pkg/ds/relation.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ func (i *relation) Filter() (path bdb.Path, keyFilter []byte, valueFilter func(*
return path, keyFilter, valueFilter
}

// nolint: gocritic // commentedOutCode
func (i *relation) RelationValueFilter() (path bdb.Path, keyFilter []byte, valueFilter func(*dsc3.Relation) bool) {
// #1 determine if object identifier is complete (has type+id)
// set index path accordingly
Expand Down

0 comments on commit 9f0be45

Please sign in to comment.