Skip to content

Commit

Permalink
carstore: fix slog logging / Errorf wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold authored and brianolson committed Jan 22, 2025
1 parent 5cdb0fe commit 988c118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions carstore/scylla.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,10 @@ func (sqs *ScyllaStore) WipeUserData(ctx context.Context, user models.Uid) error
for xcid := range cidchan {
err := sqs.ReadSession.Query("DELETE FROM blocks WHERE uid = ? AND cid = ?", user, xcid.Bytes()).Exec()
if err != nil {
sqs.log.Warn("ReadUserCar bad delete, %w", err)
sqs.log.Warn("ReadUserCar bad delete", "err", err)
errcount++
if errcount > 10 {
return err
return fmt.Errorf("ReadUserCar bad delete: %w", err)
}
}
nblocks++
Expand Down

0 comments on commit 988c118

Please sign in to comment.