From c2dd455892c0ae1af8ea4f11876e921507382acf Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Mon, 20 Dec 2021 00:38:47 +0100 Subject: [PATCH] write package status async --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index a1812b8..76bb734 100644 --- a/main.go +++ b/main.go @@ -539,11 +539,11 @@ func (b *BuildManager) htmlWorker() { statusTpl, err := template.ParseFiles("tpl/packages.html") check(err) - f, err := os.OpenFile(filepath.Join(conf.Basedir.Repo, "packages.html"), os.O_WRONLY|os.O_CREATE|os.O_TRUNC|os.O_SYNC, 0644) + f, err := os.OpenFile(filepath.Join(conf.Basedir.Repo, "packages.html"), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644) check(statusTpl.Execute(f, gen)) check(f.Close()) - time.Sleep(time.Minute) + time.Sleep(time.Minute * 5) } }