This commit is contained in:
1 parent
b3f672b84a
commit
2ecd833726
12 files changed
+213
-91
No files matched your search
@@ -50,9 +50,15 @@ func (im *InstanceManager) RestoreFromDB() {
|
||||
}
|
||||
im.lock()
|
||||
defer im.unlock()
|
||||
count := 0
|
||||
for _, x := range newil {
|
||||
x.SetTootDestination(im.tootDestination)
|
||||
im.instances[x.Hostname] = x
|
||||
count = count + 1
|
||||
}
|
||||
log.Info().
|
||||
Int("count", count).
|
||||
Msg("restored instances from database")
|
||||
}
|
||||
|
||||
func (im *InstanceManager) SaveToDB() {
|
||||
|
||||
Reference in new issue
Block a user