now actually does something
continuous-integration/drone/push Build is failing

This commit is contained in:
sneak committed 2020-03-27 19:57:58 -07:00
1 parent b3f672b84a
commit 2ecd833726
12 files changed
+213 -91

No files matched your search

+6
View File
@@ -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() {