Fix arr storage

This commit is contained in:
Mukhtar Akere
2025-01-23 03:06:11 +01:00
parent 0741ddf999
commit dc16f0d8a1
3 changed files with 20 additions and 26 deletions

View File

@@ -98,7 +98,7 @@ func NewStorage(cfg []common.ArrConfig) *Storage {
func (as *Storage) AddOrUpdate(arr *Arr) {
as.mu.Lock()
defer as.mu.Unlock()
as.Arrs[arr.Host] = arr
as.Arrs[arr.Name] = arr
}
func (as *Storage) Get(name string) *Arr {