change image submit to single goroutine with active wait. flush all submitted on close

This commit is contained in:
Umputun
2019-03-23 19:13:58 -05:00
parent 58ec50e613
commit db3f22d9fd
4 changed files with 81 additions and 24 deletions
+1
View File
@@ -349,6 +349,7 @@ func (a *serverApp) run(ctx context.Context) error {
log.Printf("[WARN] failed to close avatar store, %s", e)
}
a.notifyService.Close()
a.imageService.Close()
log.Print("[INFO] shutdown completed")
}()