Added database node.Close() to patches

This commit is contained in:
Eduard Urbach 2017-11-15 12:07:23 +01:00
parent 84568e3899
commit 6f25cac7ae
2 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,8 @@ to the studios involved in the creation of your favourite anime.
}
func main() {
defer arn.Node.Close()
for _, item := range items {
item.Save()
}

View File

@ -5,6 +5,8 @@ import (
)
func main() {
defer arn.Node.Close()
for animeList := range arn.StreamAnimeLists() {
animeList.RemoveDuplicates()
animeList.Save()