Skip to content

Commit

Permalink
all: address linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedt committed May 12, 2023
1 parent 4298af3 commit 184ceaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/middleware/streamtimeout/streamtimeout.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func (s *sendWrapper) Context() context.Context {
return s.ctx
}

func (s *sendWrapper) SetTrailer(trailer metadata.MD) {
func (s *sendWrapper) SetTrailer(_ metadata.MD) {
s.timer.Stop()
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/datastore/test/pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,15 @@ type (
iterator func(ctx context.Context, reader datastore.Reader, limit uint64, cursor options.Cursor) (datastore.RelationshipIterator, error)
)

func forwardIterator(resourceType string, ordering options.SortOrder) iterator {
func forwardIterator(resourceType string, _ options.SortOrder) iterator {
return func(ctx context.Context, reader datastore.Reader, limit uint64, cursor options.Cursor) (datastore.RelationshipIterator, error) {
return reader.QueryRelationships(ctx, datastore.RelationshipsFilter{
ResourceType: resourceType,
}, options.WithSort(options.ByResource), options.WithLimit(&limit), options.WithAfter(cursor))
}
}

func reverseIterator(subjectType string, ordering options.SortOrder) iterator {
func reverseIterator(subjectType string, _ options.SortOrder) iterator {
return func(ctx context.Context, reader datastore.Reader, limit uint64, cursor options.Cursor) (datastore.RelationshipIterator, error) {
return reader.ReverseQueryRelationships(ctx, datastore.SubjectsFilter{
SubjectType: subjectType,
Expand Down
2 changes: 1 addition & 1 deletion pkg/validationfile/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"

v1 "github.com/authzed/authzed-go/proto/authzed/api/v1"
"github.com/authzed/spicedb/pkg/util"

log "github.com/authzed/spicedb/internal/logging"
dsctx "github.com/authzed/spicedb/internal/middleware/datastore"
Expand All @@ -15,6 +14,7 @@ import (
"github.com/authzed/spicedb/pkg/datastore"
core "github.com/authzed/spicedb/pkg/proto/core/v1"
"github.com/authzed/spicedb/pkg/tuple"
"github.com/authzed/spicedb/pkg/util"
)

// PopulatedValidationFile contains the fully parsed information from a validation file.
Expand Down

0 comments on commit 184ceaf

Please sign in to comment.