We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6873940 commit a8040e5Copy full SHA for a8040e5
1 file changed
internal/storage/manager.go
@@ -54,23 +54,6 @@ func (m *Manager) GetDB() *bbolt.DB {
54
return nil
55
}
56
57
-// isDatabaseOpen checks if the database is open and available
58
-func (m *Manager) isDatabaseOpen() bool {
59
- m.mu.RLock()
60
- defer m.mu.RUnlock()
61
-
62
- if m.db == nil || m.db.db == nil {
63
- return false
64
- }
65
66
- // Test if database is actually usable by attempting a quick read
67
- err := m.db.db.View(func(tx *bbolt.Tx) error {
68
- return nil
69
- })
70
71
- return err == nil
72
-}
73
74
// Upstream operations
75
76
// SaveUpstreamServer saves an upstream server configuration
0 commit comments