Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Apr 1, 2023
1 parent 3b99f80 commit c5d1254
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions db/collection_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,12 @@ func (c *collection) applyDelete(
if !status.IsDeleted() {
return NewErrInvalidDeleteStatus(status)
}
fmt.Println(key)

found, isDeleted, err := c.exists(ctx, txn, key)
if err != nil {
return err
}
if !found || isDeleted {
fmt.Println("not found")
return client.ErrDocumentNotFound
}

Expand All @@ -248,8 +246,6 @@ func (c *collection) applyDelete(
)
cids, _, err := headset.List(ctx)
if err != nil {
fmt.Println("headset err")

return err
}

Expand All @@ -271,17 +267,12 @@ func (c *collection) applyDelete(
status,
)
if err != nil {
fmt.Println("save crdt err")

return err
}

if c.db.events.Updates.HasValue() {
fmt.Println("before publish")
txn.OnSuccess(
func() {
fmt.Println("publish")

c.db.events.Updates.Value().Publish(
events.Update{
DocKey: key.DocKey,
Expand Down

0 comments on commit c5d1254

Please sign in to comment.