Skip to content

Commit

Permalink
chore: ignore redefines-builtin-id for insert
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Kramm <[email protected]>
  • Loading branch information
FabianKramm authored and brandond committed Nov 12, 2024
1 parent 31fc27e commit 59c88f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/drivers/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ func (d *Generic) IsFill(key string) bool {
return strings.HasPrefix(key, "gap-")
}

//nolint:revive
func (d *Generic) Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (id int64, err error) {
if d.TranslateErr != nil {
defer func() {
Expand Down
1 change: 1 addition & 0 deletions pkg/server/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type Dialect interface {
Count(ctx context.Context, prefix, startKey string, revision int64) (int64, int64, error)
CurrentRevision(ctx context.Context) (int64, error)
After(ctx context.Context, prefix string, rev, limit int64) (*sql.Rows, error)
//nolint:revive
Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (int64, error)
GetRevision(ctx context.Context, revision int64) (*sql.Rows, error)
DeleteRevision(ctx context.Context, revision int64) error
Expand Down

0 comments on commit 59c88f9

Please sign in to comment.