diff --git a/pkg/bdb/generic.go b/pkg/bdb/generic.go index b379827..480ac1a 100644 --- a/pkg/bdb/generic.go +++ b/pkg/bdb/generic.go @@ -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) } diff --git a/pkg/directory/v3/reader.go b/pkg/directory/v3/reader.go index b051181..f1e1e2e 100644 --- a/pkg/directory/v3/reader.go +++ b/pkg/directory/v3/reader.go @@ -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. diff --git a/pkg/ds/relation.go b/pkg/ds/relation.go index ff0d389..63737e8 100644 --- a/pkg/ds/relation.go +++ b/pkg/ds/relation.go @@ -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