Skip to content

Commit 5118f69

Browse files
committed
Restore notes about why the bbolt fallback works this way
1 parent 4fcee50 commit 5118f69

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/store/store.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ import (
1515
)
1616

1717
// hasAllStoreBackends indicates whether we can safely use the bbolt fallback
18-
// explained in the [FactoryFromEnv] comment.
18+
// explained in the [FactoryFromEnv] comment. If we fall back to bbolt even
19+
// though we don't know the full set of possible environment keys (because we
20+
// used build tags to exclude some backends), we might activate it for a user
21+
// who meant to configure one of those missing stores instead.
1922
var hasAllStoreBackends bool
2023

2124
// Factory represents a type for functions that produce a store for the

0 commit comments

Comments
 (0)