diff --git a/pkg/drivers/generic/generic.go b/pkg/drivers/generic/generic.go index ef206f56..f154ad65 100644 --- a/pkg/drivers/generic/generic.go +++ b/pkg/drivers/generic/generic.go @@ -406,7 +406,7 @@ func (d *Generic) IsFill(key string) bool { return strings.HasPrefix(key, "gap-") } -func (d *Generic) Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (id int64, err error) { +func (d *Generic) Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (id int64, err error) { //nolint:revive if d.TranslateErr != nil { defer func() { if err != nil { diff --git a/pkg/server/types.go b/pkg/server/types.go index 83a87322..2c3e9d09 100644 --- a/pkg/server/types.go +++ b/pkg/server/types.go @@ -38,7 +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) - Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (int64, error) + Insert(ctx context.Context, key string, create, delete bool, createRevision, previousRevision int64, ttl int64, value, prevValue []byte) (int64, error) //nolint:revive GetRevision(ctx context.Context, revision int64) (*sql.Rows, error) DeleteRevision(ctx context.Context, revision int64) error GetCompactRevision(ctx context.Context) (int64, error)