aboutsummaryrefslogtreecommitdiff
path: root/objectstore/mix
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 18:38:44 +0800
committerGravatar Runxi Yu2026-03-06 18:58:30 +0800
commitf2922155de01b734e3e8b3f50be8f263ec13cacd (patch)
tree6dcfcf5689e63eea09314dce543e1de26cab89fe /objectstore/mix
parentinternal/compress: Format (diff)
signatureNo signature
*: Lint v0.1.68
Diffstat (limited to 'objectstore/mix')
-rw-r--r--objectstore/mix/mru.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/objectstore/mix/mru.go b/objectstore/mix/mru.go
index 11782d5f..52176cab 100644
--- a/objectstore/mix/mru.go
+++ b/objectstore/mix/mru.go
@@ -8,6 +8,7 @@ type backendNode struct {
next *backendNode
}
+//nolint:ireturn
func (mix *Mix) firstBackend() objectstore.Store {
mix.mu.RLock()
defer mix.mu.RUnlock()
@@ -19,6 +20,7 @@ func (mix *Mix) firstBackend() objectstore.Store {
return mix.backendHead.backend
}
+//nolint:ireturn
func (mix *Mix) nextBackend(current objectstore.Store) objectstore.Store {
mix.mu.RLock()
defer mix.mu.RUnlock()