peers db alpha release
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-05-28 17:25:10 +02:00
parent e674a0cb33
commit d049f87cdc
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ type PeerStorage struct {
func (ps *PeerStorage) open() error {
if ps.DbFile == "" {
ps.DbFile = uuid.New().String()
GetConfig().GetIdentity().Save()
}
if ps.cache == nil {
ps.cache = make(map[string]*Peer)