mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 20:12:24 -05:00
[bugfix] Fix remote media pruning failing if media already gone (#548)
* fix error check of prune to allow missing files * update go-store library, add test for pruning item with db entry but no file Signed-off-by: kim <grufwub@gmail.com> * remove now-unneccessary error check Signed-off-by: kim <grufwub@gmail.com> Co-authored-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
26b74aefaf
commit
5004e0a9da
50 changed files with 4682 additions and 1785 deletions
4
vendor/codeberg.org/gruf/go-hashenc/hashenc.go
generated
vendored
4
vendor/codeberg.org/gruf/go-hashenc/hashenc.go
generated
vendored
|
|
@ -18,7 +18,7 @@ type HashEncoder interface {
|
|||
Size() int
|
||||
}
|
||||
|
||||
// New returns a new HashEncoder instance based on supplied hash.Hash and Encoder supplying functions
|
||||
// New returns a new HashEncoder instance based on supplied hash.Hash and Encoder supplying functions.
|
||||
func New(hash hash.Hash, enc Encoder) HashEncoder {
|
||||
hashSize := hash.Size()
|
||||
return &henc{
|
||||
|
|
@ -29,7 +29,7 @@ func New(hash hash.Hash, enc Encoder) HashEncoder {
|
|||
}
|
||||
}
|
||||
|
||||
// henc is the HashEncoder implementation
|
||||
// henc is the HashEncoder implementation.
|
||||
type henc struct {
|
||||
hash hash.Hash
|
||||
hbuf []byte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue