Import Anubis v1.28.2

Replace the tree with upstream TecharoHQ/anubis v1.28.2 (a1384fbf42e3).
Masyunis customizations are re-applied in the following commits.
This commit is contained in:
sol_bot Bot committed 2026-11-28 14:52:26 +03:00
1 parent eb3e46d8d0
commit e07de898cd
573 files changed
+35846 -6807

No files matched your search

+5 -2
View File
@@ -37,7 +37,10 @@ func (Factory) Build(ctx context.Context, data json.RawMessage) (store.Interface
return nil, fmt.Errorf("%w: %w", store.ErrBadConfig, err)
}
bdb, err := bbolt.Open(config.Path, 0600, nil)
bdb, err := bbolt.Open(config.Path, 0600, &bbolt.Options{
FreelistType: bbolt.FreelistMapType,
NoFreelistSync: true,
})
if err != nil {
return nil, fmt.Errorf("can't open bbolt database %s: %w", config.Path, err)
}
@@ -83,7 +86,7 @@ func (c Config) Valid() error {
if err := os.WriteFile(filepath.Join(dir, ".test-file"), []byte(""), 0600); err != nil {
errs = append(errs, ErrCantWriteToPath)
}
os.Remove(filepath.Join(dir, ".test-file"))
os.Remove(filepath.Join(dir, ".test-file")) //nolint:errcheck
}
if len(errs) != 0 {