Skip to content

Commit 59c88f9

Browse files
FabianKrammbrandond
authored andcommitted
chore: ignore redefines-builtin-id for insert
Signed-off-by: Fabian Kramm <[email protected]>
1 parent 31fc27e commit 59c88f9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/drivers/generic/generic.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ func (d *Generic) IsFill(key string) bool {
406406
return strings.HasPrefix(key, "gap-")
407407
}
408408

409+
//nolint:revive
409410
func (d *Generic) Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (id int64, err error) {
410411
if d.TranslateErr != nil {
411412
defer func() {

pkg/server/types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type Dialect interface {
3838
Count(ctx context.Context, prefix, startKey string, revision int64) (int64, int64, error)
3939
CurrentRevision(ctx context.Context) (int64, error)
4040
After(ctx context.Context, prefix string, rev, limit int64) (*sql.Rows, error)
41+
//nolint:revive
4142
Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (int64, error)
4243
GetRevision(ctx context.Context, revision int64) (*sql.Rows, error)
4344
DeleteRevision(ctx context.Context, revision int64) error

0 commit comments

Comments
 (0)