From c8583c25b289ab2acee538add1462c5c05d1b635 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 16 May 2026 09:55:16 +0000 Subject: object/store: Simplify; remove composited writer and quarantiner --- object/store/errors.go | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'object/store/errors.go') diff --git a/object/store/errors.go b/object/store/errors.go index 12bb8b28..74da4df1 100644 --- a/object/store/errors.go +++ b/object/store/errors.go @@ -2,7 +2,16 @@ package store import "errors" -// ErrObjectNotFound indicates that an object does not exist in a backend. -// This error must only be produced by object stores, when it has no -// specified object ID, but no other unexpected conditions were encountered. +// ErrObjectNotFound indicates that +// an object does not exist in a backend. +// This error must only be produced by object stores, +// when it has no specified object ID, +// but no other unexpected conditions were encountered. var ErrObjectNotFound = errors.New("objectstore: object not found") + +// This is a sentinel with no details, +// because it could be a frequent occurence, +// and allocating frequently on expected error paths +// would be extremely harmful to performance. +// Sometime, I will audit this again. +// TODO \ No newline at end of file -- cgit v1.3.1-10-gc9f91