Users page is now cached

This commit is contained in:
2017-06-14 17:16:03 +02:00
parent 07702a598f
commit d42f161fdd
6 changed files with 53 additions and 12 deletions

View File

@ -24,6 +24,8 @@ var avatarOutputs []AvatarOutput
// Main
func main() {
color.Yellow("Generating user avatars")
// Switch to main directory
os.Chdir("../../")
@ -78,6 +80,8 @@ func main() {
for user := range users {
usersQueue <- user
}
color.Green("Finished.")
}
// StartWorkers creates multiple workers to handle a user each.