Generalize updater.go

This commit is contained in:
Bryan Boreham committed 2015-04-01 16:48:11 +01:00
1 parent 3dad9fb593
commit 68096b0437
3 files changed
+16 -7

No files matched your search

+5
View File
@@ -139,3 +139,8 @@ func (zone *ZoneDb) DeleteRecordsFor(ident string) error {
zone.recs = zone.recs[:w]
return nil
}
func (zone *ZoneDb) ContainerDied(ident string) error {
Info.Printf("[zonedb] Container %s down. Removing records", ident)
return zone.DeleteRecordsFor(ident)
}