Skip to content

Commit

Permalink
Specify the type for sr.SoftDelete and sr.HardDelete
Browse files Browse the repository at this point in the history
Note: This is a breaking change, but I guess the impact is minimal.

Signed-off-by: Mihai Todor <[email protected]>
  • Loading branch information
mihaitodor committed Oct 30, 2024
1 parent cea7aa5 commit 57b62e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sr/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ type DeleteHow bool

const (
// SoftDelete performs a soft deletion.
SoftDelete = false
SoftDelete DeleteHow = false
// HardDelete performs a hard deletion. Values must be soft deleted
// before they can be hard deleted.
HardDelete = true
HardDelete DeleteHow = true
)

// DeleteSubject deletes the subject. You must soft delete a subject before it
Expand Down

0 comments on commit 57b62e6

Please sign in to comment.