change image submit to single goroutine with active wait. flush all submitted on close
This commit is contained in:
@@ -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")
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user