1
0
Fork 0

chore: formatting

This commit is contained in:
Arthur K. 2026-01-19 19:34:31 +03:00
parent af6421da88
commit 7c4154a459
Signed by: wzray
GPG key ID: B97F30FDC4636357
6 changed files with 9 additions and 9 deletions

View file

@ -12,8 +12,8 @@ import (
)
type FileStorage struct {
filename string
lock sync.Mutex
filename string
lock sync.Mutex
}
func NewFileStorage(filename string) *FileStorage {
@ -31,7 +31,7 @@ func (fs *FileStorage) EnsureExists() {
if _, err := os.Stat(fs.filename); os.IsNotExist(err) {
fs.Save(&storedConfig{
LastUpdate: time.Now().UnixMilli(),
Nodes: make(map[string]types.Node),
Nodes: make(map[string]types.Node),
})
}
}